diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 7b279c4f056dd88ba217c3b33e98a5a76f6ed33e..4975ccf22c226fcf30bcfaf0c6371f8316693a7d 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(); }