You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw
Eric Auger eb013cd6a1 hw/i386/microvm: Explicitly select ACPI_PCI
With a microvm-only build based on a custom device config,
we get a link failure due to undefined reference to
build_pci_host_bridge_osc_method() which is defined in hw/acpi/pci.c and
whose compilation depends on CONFIG_ACPI_PCI. Although CONFIG_ACPI
and CONFIG_PCI are set with such configuration, implied CONFIG_ACPI_PCI
in config PCI_EXPRESS_GENERIC_BRIDGE is not selected as expected.

It Looks like CONFIG_ACPI_PCI must be enforced and this patch selects
CONFIG_ACPI_PCI in MICROVM config directly as done for PC config.

Reproducer:

../configure \
 --without-default-features \
 --target-list=x86_64-softmmu \
 --enable-kvm --disable-tcg \
 --enable-pixman \
 --enable-vnc \
 --audio-drv-list="" \
 --without-default-devices \
 --with-devices-x86_64=microvm \
 --enable-vhost-user

with configs/devices/x86_64-softmmu/microvm.mak:
CONFIG_PCI_DEVICES=n

CONFIG_MICROVM=y

CONFIG_VIRTIO_BLK=y
CONFIG_VIRTIO_SERIAL=y
CONFIG_VIRTIO_INPUT=y
CONFIG_VIRTIO_INPUT_HOST=y
CONFIG_VHOST_USER_INPUT=y
CONFIG_VIRTIO_NET=y
CONFIG_VIRTIO_SCSI=y
CONFIG_VIRTIO_RNG=y
CONFIG_VIRTIO_CRYPTO=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_GPU=y
CONFIG_VHOST_USER_GPU=y

FAILED: qemu-system-x86_64
cc -m64 @qemu-system-x86_64.rsp
/usr/bin/ld: libsystem.a.p/hw_pci-host_gpex-acpi.c.o: in function `acpi_dsdt_add_host_bridge_methods':
hw/pci-host/gpex-acpi.c:83:(.text+0x274): undefined reference to `build_pci_host_bridge_osc_method'
collect2: error: ld returned 1 exit status

Fixes: af151d50ea "hw/pci-host/gpex-acpi: Use build_pci_host_bridge_osc_method"
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Message-ID: <20250804152008.247673-1-eric.auger@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
6 days ago
..
9pfs hw/9pfs: move G_GNUC_PRINTF to header 4 weeks ago
acpi hw/acpi/aml-build: Build a root node in the PPTT table 4 weeks ago
adc qom: Have class_init() take a const data argument 4 months ago
alpha qom: Have class_init() take a const data argument 4 months ago
arm hw/arm/smmu-common: Avoid using inlined functions with external linkage 2 weeks ago
audio hw/audio/via-ac97: skip automatic zero-init of large array 2 months ago
avr qom: Have class_init() take a const data argument 4 months ago
block hw/virtio: Build various files once 4 weeks ago
char qemu: Declare all load/store helper in 'qemu/bswap.h' 4 weeks ago
core hw/i386: Fix 'use-legacy-x86-rom' property compatibility 2 weeks ago
cpu qom: Have class_init() take a const data argument 4 months ago
cxl hw/cxl: mailbox-utils: 0x5605 - FMAPI Initiate DC Release 4 weeks ago
display hw/display/framebuffer: Add cast to force 64x64 multiply 1 week ago
dma hw/dma/xlnx_csu_dma: skip automatic zero-init of large array 2 months ago
fsi qom: Have class_init() take a const data argument 4 months ago
gpio hw/gpio/pca9552: Avoid using g_newa() 2 months ago
hppa qom: Make InterfaceInfo[] uses const 4 months ago
hyperv hw/hyperv/syndbg: skip automatic zero-init of large array 2 months ago
i2c hw/arm: Replace TABs for spaces in OMAP board and device code 3 months ago
i386 hw/i386/microvm: Explicitly select ACPI_PCI 6 days ago
ide qom: Make InterfaceInfo[] uses const 4 months ago
input vhost-user: return failure if backend crash when live migration 3 months ago
intc target-arm queue: 1 week ago
ipack qom: Make InterfaceInfo[] uses const 4 months ago
ipmi qom: Make InterfaceInfo[] uses const 4 months ago
isa hw/isa/ich9: Remove stray empty comment 3 months ago
loongarch acpi: Add machine option to disable SPCR table 4 weeks ago
m68k qom: Make InterfaceInfo[] uses const 4 months ago
mem hw/cxl: mailbox-utils: 0x5604 - FMAPI Initiate DC Add 4 weeks ago
microblaze hw/microblaze: Add missing FDT dependency 4 weeks ago
mips hw/mips: Restrict ITU to TCG 4 weeks ago
misc hw/misc/max78000_aes: Comment Internal Key Storage 3 weeks ago
net virtio-net: Fix VLAN filter table reset timing 1 week ago
nubus qom: Have class_init() take a const data argument 4 months ago
nvme treewide: fix paths for relocated files in comments 1 month ago
nvram hw/nvram/fw_cfg: Remove legacy FW_CFG_ORDER_OVERRIDE 2 months ago
openrisc qom: Have class_init() take a const data argument 4 months ago
pci pcie_sriov: Fix configuration and state synchronization 1 week ago
pci-bridge qom: Make InterfaceInfo[] uses const 4 months ago
pci-host hw/pci-host/gpex-acpi: Use build_pci_host_bridge_osc_method 4 weeks ago
ppc ppc/xive: Change presenter .match_nvt to match not present 3 weeks ago
remote qom: Make InterfaceInfo[] uses const 4 months ago
riscv hw/riscv/virt-acpi-build.c: Update FADT and MADT versions 2 weeks ago
rtc hw/rtc/mc146818rtc: Drop pre-v3 migration stream support 3 months ago
rx qom: Have class_init() take a const data argument 4 months ago
s390x qemu: Declare all load/store helper in 'qemu/bswap.h' 4 weeks ago
scsi esp.c: only allow ESP commands permitted in the current asc_mode 4 weeks ago
sd hw/sd/sdcard: Remove SDState::mode field 6 days ago
sensor qemu: Declare all load/store helper in 'qemu/bswap.h' 4 weeks ago
sh4 include: Remove 'exec/exec-all.h' 3 months ago
smbios qemu: Declare all load/store helper in 'qemu/bswap.h' 4 weeks ago
sparc qom: Have class_init() take a const data argument 4 months ago
sparc64 qom: Make InterfaceInfo[] uses const 4 months ago
ssi hw/ssi/aspeed_smc: Fix incorrect FMC_WDT2 register read on AST1030 1 week ago
timer hpet: return errors from realize if properties are incorrect 2 months ago
tpm qom: Make InterfaceInfo[] uses const 4 months ago
tricore qom: Have class_init() take a const data argument 4 months ago
uefi hw/uefi: Create and use trace.h wrapper header 4 weeks ago
ufs hw/ufs/lu: skip automatic zero-init of large array 2 months ago
usb hw/usb/dev-hid: Support side and extra mouse buttons for usb-tablet 4 weeks ago
vfio Misc HW patches 2 weeks ago
vfio-user hw/vfio-user: fix use of uninitialized variable 4 weeks ago
virtio vhost: Do not abort on log-stop error 1 week ago
vmapple qemu: Declare all load/store helper in 'qemu/bswap.h' 4 weeks ago
watchdog qom: Make InterfaceInfo[] uses const 4 months ago
xen hw/xen/passthrough: add missing error-report include 2 weeks ago
xenpv include: Rename sysemu/ -> system/ 8 months ago
xtensa qom: Have class_init() take a const data argument 4 months ago
Kconfig vfio-user: add vfio-user class and container 2 months ago
meson.build vfio-user: add vfio-user class and container 2 months ago