aboutsummaryrefslogtreecommitdiff
path: root/hw/intc/Kconfig
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2021-11-15 23:36:19 +0100
committerPeter Maydell <peter.maydell@linaro.org>2021-12-15 10:35:10 +0000
commita8a5546798c3b59d2a6c37734ec1804e706d84e1 (patch)
tree0abdb184b26212a0daef8ba9d0fb825c428bc296 /hw/intc/Kconfig
parenta1d742d88b7c4aef31c265ee931dfc51ec4be017 (diff)
downloadqemu-a8a5546798c3b59d2a6c37734ec1804e706d84e1.zip
qemu-a8a5546798c3b59d2a6c37734ec1804e706d84e1.tar.gz
qemu-a8a5546798c3b59d2a6c37734ec1804e706d84e1.tar.bz2
hw/intc/arm_gicv3: Introduce CONFIG_ARM_GIC_TCG Kconfig selector
The TYPE_ARM_GICV3 device is an emulated one. When using KVM, it is recommended to use the TYPE_KVM_ARM_GICV3 device (which uses in-kernel support). When using --with-devices-FOO, it is possible to build a binary with a specific set of devices. When this binary is restricted to KVM accelerator, the TYPE_ARM_GICV3 device is irrelevant, and it is desirable to remove it from the binary. Therefore introduce the CONFIG_ARM_GIC_TCG Kconfig selector which select the files required to have the TYPE_ARM_GICV3 device, but also allowing to de-select this device. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20211115223619.2599282-3-philmd@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/intc/Kconfig')
-rw-r--r--hw/intc/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/intc/Kconfig b/hw/intc/Kconfig
index 78aed93..010ded7 100644
--- a/hw/intc/Kconfig
+++ b/hw/intc/Kconfig
@@ -25,6 +25,11 @@ config APIC
select MSI_NONBROKEN
select I8259
+config ARM_GIC_TCG
+ bool
+ default y
+ depends on ARM_GIC && TCG
+
config ARM_GIC_KVM
bool
default y