aboutsummaryrefslogtreecommitdiff
path: root/hw/misc
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2014-06-30 09:50:33 -0600
committerAlex Williamson <alex.williamson@redhat.com>2014-06-30 09:50:33 -0600
commit9035f8c09bebb63c0cc6014acf5c7066ef778aff (patch)
treebde92ce5b60260994df20a7fb24e76a8d61697b3 /hw/misc
parent8954000b9ef88db809d23ce58a3221eacdf3b773 (diff)
downloadqemu-9035f8c09bebb63c0cc6014acf5c7066ef778aff.zip
qemu-9035f8c09bebb63c0cc6014acf5c7066ef778aff.tar.gz
qemu-9035f8c09bebb63c0cc6014acf5c7066ef778aff.tar.bz2
vfio-pci: Fix MSI/X debug code
Use the correct MSI message function for debug info. Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/misc')
-rw-r--r--hw/misc/vfio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c
index 7b279c4..4975ccf 100644
--- a/hw/misc/vfio.c
+++ b/hw/misc/vfio.c
@@ -642,9 +642,9 @@ static void vfio_msi_interrupt(void *opaque)
MSIMessage msg;
if (vdev->interrupt == VFIO_INT_MSIX) {
- msg = msi_get_message(&vdev->pdev, nr);
- } else if (vdev->interrupt == VFIO_INT_MSI) {
msg = msix_get_message(&vdev->pdev, nr);
+ } else if (vdev->interrupt == VFIO_INT_MSI) {
+ msg = msi_get_message(&vdev->pdev, nr);
} else {
abort();
}