diff options
author | Paolo Bonzini | 2019-12-12 14:20:05 +0100 |
---|---|---|
committer | Paolo Bonzini | 2019-12-17 19:33:49 +0100 |
commit | ec5ce147a63273bbc55ed1c52c1db41b0c5a7775 (patch) | |
tree | 2ed9c0ae98323138bae66ad8607d598d682eab0a /hw/pci | |
parent | hw: replace hw/i386/pc.h with a header just for the i8259 (diff) | |
download | qemu-ec5ce147a63273bbc55ed1c52c1db41b0c5a7775.tar.gz qemu-ec5ce147a63273bbc55ed1c52c1db41b0c5a7775.tar.xz qemu-ec5ce147a63273bbc55ed1c52c1db41b0c5a7775.zip |
pci-stub: add more MSI functions
On x86, KVM needs some function from the PCI subsystem in order to set
up interrupt routes. Provide some stubs to support x86 machines that
lack PCI.
Reviewed-by: Sergio Lopez <slp@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/pci')
-rw-r--r-- | hw/pci/pci-stub.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/hw/pci/pci-stub.c b/hw/pci/pci-stub.c index c04a5df651..cc2a2e1f73 100644 --- a/hw/pci/pci-stub.c +++ b/hw/pci/pci-stub.c @@ -26,6 +26,7 @@ #include "qapi/qmp/qerror.h" #include "hw/pci/pci.h" #include "hw/pci/msi.h" +#include "hw/pci/msix.h" bool msi_nonbroken; bool pci_available; @@ -64,3 +65,29 @@ void msi_notify(PCIDevice *dev, unsigned int vector) { g_assert_not_reached(); } + +/* Required by target/i386/kvm.c */ +bool msi_is_masked(const PCIDevice *dev, unsigned vector) +{ + g_assert_not_reached(); +} + +MSIMessage msi_get_message(PCIDevice *dev, unsigned int vector) +{ + g_assert_not_reached(); +} + +int msix_enabled(PCIDevice *dev) +{ + return false; +} + +bool msix_is_masked(PCIDevice *dev, unsigned vector) +{ + g_assert_not_reached(); +} + +MSIMessage msix_get_message(PCIDevice *dev, unsigned int vector) +{ + g_assert_not_reached(); +} |