diff options
author | Wei Yang <richard.weiyang@gmail.com> | 2016-02-19 09:42:32 -0700 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:45:30 -0600 |
commit | 54935420da80f8e2526f524bbfe4087f8382d79a (patch) | |
tree | a91186c32c2086162c40131d80f951fd2ad7cbce | |
parent | 5ae931642c2dde45f74e341698e5fec7b68433e8 (diff) | |
download | hqemu-54935420da80f8e2526f524bbfe4087f8382d79a.zip hqemu-54935420da80f8e2526f524bbfe4087f8382d79a.tar.gz |
vfio/pci: use PCI_MSIX_FLAGS on retrieving the MSIX entries
Even PCI_CAP_FLAGS has the same value as PCI_MSIX_FLAGS, the later one is
the more proper on retrieving MSIX entries.
This patch uses PCI_MSIX_FLAGS to retrieve the MSIX entries.
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
-rw-r--r-- | hw/vfio/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index dc5fa9f..20b505f 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -1207,7 +1207,7 @@ static int vfio_msix_early_setup(VFIOPCIDevice *vdev) } if (pread(fd, &ctrl, sizeof(ctrl), - vdev->config_offset + pos + PCI_CAP_FLAGS) != sizeof(ctrl)) { + vdev->config_offset + pos + PCI_MSIX_FLAGS) != sizeof(ctrl)) { return -errno; } |