projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8954000
)
vfio-pci: Fix MSI/X debug code
author
Alex Williamson
<alex.williamson@redhat.com>
Mon, 30 Jun 2014 15:50:33 +0000
(09:50 -0600)
committer
Alex 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
patch
|
blob
|
history
diff --git
a/hw/misc/vfio.c
b/hw/misc/vfio.c
index 7b279c4f056dd88ba217c3b33e98a5a76f6ed33e..4975ccf22c226fcf30bcfaf0c6371f8316693a7d 100644
(file)
--- 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();
}