qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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>

+27
+27
hw/pci/pci-stub.c
··· 26 26 #include "qapi/qmp/qerror.h" 27 27 #include "hw/pci/pci.h" 28 28 #include "hw/pci/msi.h" 29 + #include "hw/pci/msix.h" 29 30 30 31 bool msi_nonbroken; 31 32 bool pci_available; ··· 64 65 { 65 66 g_assert_not_reached(); 66 67 } 68 + 69 + /* Required by target/i386/kvm.c */ 70 + bool msi_is_masked(const PCIDevice *dev, unsigned vector) 71 + { 72 + g_assert_not_reached(); 73 + } 74 + 75 + MSIMessage msi_get_message(PCIDevice *dev, unsigned int vector) 76 + { 77 + g_assert_not_reached(); 78 + } 79 + 80 + int msix_enabled(PCIDevice *dev) 81 + { 82 + return false; 83 + } 84 + 85 + bool msix_is_masked(PCIDevice *dev, unsigned vector) 86 + { 87 + g_assert_not_reached(); 88 + } 89 + 90 + MSIMessage msix_get_message(PCIDevice *dev, unsigned int vector) 91 + { 92 + g_assert_not_reached(); 93 + }