mirror of https://gitlab.com/qemu-project/qemu
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.
![]() 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:
|
6 days ago | |
---|---|---|
.. | ||
kvm | 2 months ago | |
xen | 4 months ago | |
Kconfig | 6 days ago | |
acpi-build.c | 4 weeks ago | |
acpi-build.h | 4 weeks ago | |
acpi-common.c | 4 months ago | |
acpi-common.h | 1 year ago | |
acpi-microvm.c | 4 months ago | |
acpi-microvm.h | 5 years ago | |
amd_iommu-stub.c | 2 years ago | |
amd_iommu.c | 1 week ago | |
amd_iommu.h | 1 week ago | |
e820_memory_layout.c | 1 year ago | |
e820_memory_layout.h | 1 year ago | |
fw_cfg.c | 5 months ago | |
fw_cfg.h | 1 year ago | |
intel_iommu.c | 1 week ago | |
intel_iommu_internal.h | 4 weeks ago | |
meson.build | 3 months ago | |
microvm-dt.c | 8 months ago | |
microvm-dt.h | 4 years ago | |
microvm.c | 2 weeks ago | |
monitor.c | 3 months ago | |
multiboot.c | 4 months ago | |
multiboot.h | 4 years ago | |
nitro_enclave.c | 4 months ago | |
pc.c | 4 weeks ago | |
pc_piix.c | 2 weeks ago | |
pc_q35.c | 2 weeks ago | |
pc_sysfw.c | 1 month ago | |
pc_sysfw_ovmf-stubs.c | 4 years ago | |
pc_sysfw_ovmf.c | 4 months ago | |
port92.c | 4 months ago | |
sgx-epc.c | 4 months ago | |
sgx-stub.c | 3 months ago | |
sgx.c | 3 months ago | |
tdvf-hob.c | 3 months ago | |
tdvf-hob.h | 3 months ago | |
tdvf.c | 2 months ago | |
trace-events | 6 months ago | |
trace.h | 5 years ago | |
vapic.c | 4 months ago | |
vmmouse.c | 4 months ago | |
vmport.c | 4 months ago | |
x86-common.c | 3 months ago | |
x86-cpu.c | 8 months ago | |
x86-iommu-stub.c | 4 years ago | |
x86-iommu.c | 4 months ago | |
x86.c | 2 months ago |