qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/intc/Kconfig: Fix GIC settings when using "--without-defa


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] hw/intc/Kconfig: Fix GIC settings when using "--without-default-devices"
Date: Thu, 22 Feb 2024 08:57:02 +0100
User-agent: Mozilla Thunderbird

On 21/2/24 12:00, Thomas Huth wrote:
When using "--without-default-devices", the ARM_GICV3_TCG and ARM_GIC_KVM
settings currently get disabled, though the arm virt machine is only of
very limited use in that case. This also causes the migration-test to
fail in such builds. Let's make sure that we always keep the GIC switches
enabled in the --without-default-devices builds, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
  hw/intc/Kconfig | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/hw/intc/Kconfig b/hw/intc/Kconfig
index 97d550b06b..2b5b2d2301 100644
--- a/hw/intc/Kconfig
+++ b/hw/intc/Kconfig
@@ -12,10 +12,6 @@ config IOAPIC
      bool
      select I8259
-config ARM_GIC
-    bool
-    select MSI_NONBROKEN
-
  config OPENPIC
      bool
      select MSI_NONBROKEN
@@ -25,14 +21,18 @@ config APIC
      select MSI_NONBROKEN
      select I8259
+config ARM_GIC
+    bool
+    select ARM_GICV3_TCG if TCG
+    select ARM_GIC_KVM if KVM

This is odd, we usually 'select' dependencies.

+    select MSI_NONBROKEN
+
  config ARM_GICV3_TCG
      bool
-    default y

Don't we want instead:

       default y if TCG

      depends on ARM_GIC && TCG
config ARM_GIC_KVM
      bool
-    default y

and:

       default y if KVM

?

      depends on ARM_GIC && KVM
config XICS




reply via email to

[Prev in Thread] Current Thread [Next in Thread]