aboutsummaryrefslogtreecommitdiff
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
parent8954000b9ef88db809d23ce58a3221eacdf3b773 (diff)
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>
-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 7b279c4f05..4975ccf22c 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();
}