summary refs log tree commit diff stats
path: root/tests/libqos/pci-pc.c
diff options
context:
space:
mode:
authorEmanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>2018-08-09 12:44:56 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-03-07 17:28:26 +0100
commit92bbafc71812fb9d20e9da00286a2e319e77a103 (patch)
treeafbe1d3a47717ff3000a6ada9c9afbce41d83840 /tests/libqos/pci-pc.c
parent7985b582d68a990d0285afd3ad6f9eff5ff5c3c5 (diff)
downloadfocaccia-qemu-92bbafc71812fb9d20e9da00286a2e319e77a103.tar.gz
focaccia-qemu-92bbafc71812fb9d20e9da00286a2e319e77a103.zip
tests/libqos: has_buggy_msi flag
The Qgraph framework makes any test using
pci bus run the same function using pci-pci and
pci-spapr bus. However, some tests are not ready to use
the spapr bus, due to a MSI bug. Until it does not get
fixed, this flag allows them to skip the test

Signed-off-by: Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/libqos/pci-pc.c')
-rw-r--r--tests/libqos/pci-pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libqos/pci-pc.c b/tests/libqos/pci-pc.c
index d729ad4057..4ab16facf2 100644
--- a/tests/libqos/pci-pc.c
+++ b/tests/libqos/pci-pc.c
@@ -124,6 +124,9 @@ void qpci_init_pc(QPCIBusPC *qpci, QTestState *qts, QGuestAllocator *alloc)
 {
     assert(qts);
 
+    /* tests can use pci-bus */
+    qpci->bus.has_buggy_msi = FALSE;
+
     qpci->bus.pio_readb = qpci_pc_pio_readb;
     qpci->bus.pio_readw = qpci_pc_pio_readw;
     qpci->bus.pio_readl = qpci_pc_pio_readl;