]> git.proxmox.com Git - mirror_qemu.git/commitdiff
vfio-pci: Fix MSI/X debug code
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 30 Jun 2014 15:50:33 +0000 (09:50 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 30 Jun 2014 15:50:33 +0000 (09:50 -0600)
Use the correct MSI message function for debug info.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/misc/vfio.c

index 7b279c4f056dd88ba217c3b33e98a5a76f6ed33e..4975ccf22c226fcf30bcfaf0c6371f8316693a7d 100644 (file)
@@ -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();
     }