[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 02/30] hw/pci/pci-stub: Add msi_enabled() and msi
From: |
Thomas Huth |
Subject: |
[Qemu-devel] [PATCH v3 02/30] hw/pci/pci-stub: Add msi_enabled() and msi_notify() to the pci stubs |
Date: |
Sat, 23 Feb 2019 08:48:54 +0100 |
Some machines have an AHCI adapter, but no PCI. To be able to
compile hw/ide/ahci.c without CONFIG_PCI, we still need the two
functions msi_enabled() and msi_notify() for linking.
This is required for the new Kconfig-like build system, if a user
wants to compile a QEMU binary with just one machine that has AHCI,
but no PCI, like the ARM "cubieboard" for example.
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Thomas Huth <address@hidden>
---
hw/pci/pci-stub.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/hw/pci/pci-stub.c b/hw/pci/pci-stub.c
index b941a0e..c04a5df 100644
--- a/hw/pci/pci-stub.c
+++ b/hw/pci/pci-stub.c
@@ -53,3 +53,14 @@ uint16_t pci_requester_id(PCIDevice *dev)
g_assert(false);
return 0;
}
+
+/* Required by ahci.c */
+bool msi_enabled(const PCIDevice *dev)
+{
+ return false;
+}
+
+void msi_notify(PCIDevice *dev, unsigned int vector)
+{
+ g_assert_not_reached();
+}
--
1.8.3.1
- [Qemu-devel] [PATCH v3 00/30] Kconfig dependencies for ARM machines, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 01/30] hw/arm/Kconfig: Add a config switch for MUSCA, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 03/30] hw/ide/ahci: Add a Kconfig switch for the AHDI-ICH9 device, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 02/30] hw/pci/pci-stub: Add msi_enabled() and msi_notify() to the pci stubs,
Thomas Huth <=
- [Qemu-devel] [PATCH v3 09/30] hw/arm: Express dependencies of musicpal with Kconfig, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 05/30] hw/arm: Express dependencies of the exynos machines with Kconfig, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 07/30] hw/arm: Express dependencies of integratorcp with Kconfig, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 08/30] hw/arm: Express dependencies of the fsl-imx31 machine with Kconfig, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 04/30] hw/sd/sdhci: Move PCI-related code into a separate file, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 06/30] hw/arm: Express dependencies of the highbank machines with Kconfig, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 10/30] hw/arm: Express dependencies of the OMAP machines with Kconfig, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 11/30] hw/arm: Express dependencies of stellaris with Kconfig, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 12/30] hw/arm: Express dependencies of realview, versatile and vexpress with Kconfig, Thomas Huth, 2019/02/23
- [Qemu-devel] [PATCH v3 14/30] hw/arm: Express dependencies of xilinx-zynq with Kconfig, Thomas Huth, 2019/02/23