Kconfig: kvm: allow building without any board

KVM code might have to call functions on the PCIDevice that is
passed to kvm_arch_fixup_msi_route().  This fails in the case
where --without-default-devices is used and no board is
configured.  While this is not really a useful configuration,
and therefore setting up stubs for CONFIG_PCI is overkill,
failing the build is impolite.  Just include the PCI
subsystem if kvm_arch_fixup_msi_route() requires it, as
is the case for ARM and x86.

Reported-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2024-04-23 21:16:31 +02:00
parent 6a5a63f74b
commit 5ce77fcb1b
2 changed files with 4 additions and 0 deletions

View File

@ -9,3 +9,5 @@ config ARM
config AARCH64
bool
select ARM
# kvm_arch_fixup_msi_route() needs to access PCIDevice
select PCI if KVM

View File

@ -1,5 +1,7 @@
config I386
bool
# kvm_arch_fixup_msi_route() needs to access PCIDevice
select PCI if KVM
config X86_64
bool