diff options
author | Alex Williamson | 2014-06-30 17:50:33 +0200 |
---|---|---|
committer | Alex Williamson | 2014-06-30 17:50:33 +0200 |
commit | 9035f8c09bebb63c0cc6014acf5c7066ef778aff (patch) | |
tree | bde92ce5b60260994df20a7fb24e76a8d61697b3 /hw/misc | |
parent | Merge remote-tracking branch 'remotes/bonzini/nbd-next' into staging (diff) | |
download | qemu-9035f8c09bebb63c0cc6014acf5c7066ef778aff.tar.gz qemu-9035f8c09bebb63c0cc6014acf5c7066ef778aff.tar.xz qemu-9035f8c09bebb63c0cc6014acf5c7066ef778aff.zip |
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.c | 4 |
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(); } |