mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user