From: Alex Williamson Date: Mon, 30 Jun 2014 15:50:33 +0000 (-0600) Subject: vfio-pci: Fix MSI/X debug code X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~209^2~729^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9035f8c09bebb63c0cc6014acf5c7066ef778aff;p=sdk%2Femulator%2Fqemu.git vfio-pci: Fix MSI/X debug code Use the correct MSI message function for debug info. Signed-off-by: Alex Williamson --- 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(); }