diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-23 21:16:31 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-03 14:16:26 +0200 |
commit | 5ce77fcb1b8480f35a1008d5500197d4b73f9ef6 (patch) | |
tree | f668cfe02c9fef0effc04c59fbddac6c4cf603bd /target/i386 | |
parent | 6a5a63f74ba5c5355b7a8468d3d814bfffe928fb (diff) | |
download | qemu-5ce77fcb1b8480f35a1008d5500197d4b73f9ef6.zip qemu-5ce77fcb1b8480f35a1008d5500197d4b73f9ef6.tar.gz qemu-5ce77fcb1b8480f35a1008d5500197d4b73f9ef6.tar.bz2 |
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>
Diffstat (limited to 'target/i386')
-rw-r--r-- | target/i386/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/i386/Kconfig b/target/i386/Kconfig index ce69689..4689894 100644 --- a/target/i386/Kconfig +++ b/target/i386/Kconfig @@ -1,5 +1,7 @@ config I386 bool + # kvm_arch_fixup_msi_route() needs to access PCIDevice + select PCI if KVM config X86_64 bool |