summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCornelia Huck2017-07-07 11:45:26 +0200
committerCornelia Huck2017-08-30 18:23:25 +0200
commit88c725c78e87eecb061f882177c7a6a2ac1059ad (patch)
treee5076aa2e2219460f4a6ca9b0a4cda8f345fe32e /include
parent9pfs: fix dependencies (diff)
downloadqemu-88c725c78e87eecb061f882177c7a6a2ac1059ad.tar.gz
qemu-88c725c78e87eecb061f882177c7a6a2ac1059ad.tar.xz
qemu-88c725c78e87eecb061f882177c7a6a2ac1059ad.zip
kvm: remove hard dependency on pci
The msi routing code in kvm calls some pci functions: provide some stubs to enable builds without pci. Also, to make this more obvious, guard them via a pci_available boolean (which also can be reused in other places). Fixes: e1d4fb2de ("kvm-irqchip: x86: add msi route notify fn") Fixes: 767a554a0 ("kvm-all: Pass requester ID to MSI routing functions") Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/pci/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index e598b095eb..8bb6449dd7 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -10,6 +10,8 @@
#include "hw/pci/pcie.h"
+extern bool pci_available;
+
/* PCI bus */
#define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07))