From: Mohamed Mediouni <mohamed@unpredictable.fr>
To: qemu-devel@nongnu.org
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Sunil Muthuswamy" <sunilmut@microsoft.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Peter Maydell" <peter.maydell@linaro.org>,
qemu-arm@nongnu.org,
"Mohamed Mediouni" <mohamed@unpredictable.fr>
Subject: [RFC 5/9] hw/virt: make Qemu aware that WHPX has a vGICv3
Date: Thu, 31 Jul 2025 07:27:49 +0200 [thread overview]
Message-ID: <20250731052753.93255-6-mohamed@unpredictable.fr> (raw)
In-Reply-To: <20250731052753.93255-1-mohamed@unpredictable.fr>
WHPX is a vGICv3-only target without vGICv2 or user-mode irqchip
support.
Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr>
---
hw/arm/virt.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index ef6be3660f..4996c2075e 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -49,6 +49,7 @@
#include "system/tcg.h"
#include "system/kvm.h"
#include "system/hvf.h"
+#include "system/whpx.h"
#include "system/qtest.h"
#include "hw/loader.h"
#include "qapi/error.h"
@@ -2058,6 +2059,8 @@ static void finalize_gic_version(VirtMachineState *vms)
/* KVM w/o kernel irqchip can only deal with GICv2 */
gics_supported |= VIRT_GIC_VERSION_2_MASK;
accel_name = "KVM with kernel-irqchip=off";
+ } else if (whpx_enabled()) {
+ gics_supported |= VIRT_GIC_VERSION_3_MASK;
} else if (tcg_enabled() || hvf_enabled() || qtest_enabled()) {
gics_supported |= VIRT_GIC_VERSION_2_MASK;
if (module_object_class_by_name("arm-gicv3")) {
--
2.39.5 (Apple Git-154)
next prev parent reply other threads:[~2025-07-31 5:29 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-31 5:27 [RFC 0/9] WHPX support for Arm Mohamed Mediouni
2025-07-31 5:27 ` [RFC 1/9] whpx: Move around files before introducing AArch64 support Mohamed Mediouni
2025-07-31 8:27 ` Philippe Mathieu-Daudé
2025-08-01 5:44 ` Richard Henderson
2025-07-31 5:27 ` [RFC 2/9] whpx: reshuffle common code Mohamed Mediouni
2025-07-31 5:27 ` [RFC 3/9] whpx: common: use whpx_cpu_instance_init on x86 only Mohamed Mediouni
2025-07-31 8:30 ` Philippe Mathieu-Daudé
2025-07-31 5:27 ` [RFC 4/9] whpx: interrupt controller support Mohamed Mediouni
2025-07-31 5:27 ` Mohamed Mediouni [this message]
2025-07-31 8:35 ` [RFC 5/9] hw/virt: make Qemu aware that WHPX has a vGICv3 Philippe Mathieu-Daudé
2025-07-31 14:47 ` Mohamed Mediouni
2025-07-31 5:27 ` [RFC 6/9] hw: intc: arm_gicv3_common: add whpx Mohamed Mediouni
2025-07-31 8:33 ` Philippe Mathieu-Daudé
2025-07-31 5:27 ` [RFC 7/9] whpx: add arm64 support Mohamed Mediouni
2025-08-01 6:03 ` Richard Henderson
2025-07-31 5:27 ` [RFC 8/9] whpx: copy over memory tracking logic from hvf Mohamed Mediouni
2025-07-31 5:27 ` [RFC 9/9] target/arm: cpu: mark WHPX as supporting PSCI 1.1 Mohamed Mediouni
2025-08-01 1:15 ` [RFC 0/9] WHPX support for Arm Pierrick Bouvier
2025-08-01 12:43 ` Mohamed Mediouni
2025-08-01 17:22 ` Pierrick Bouvier
2025-08-01 18:52 ` Mohamed Mediouni
2025-08-01 19:16 ` Pierrick Bouvier
2025-08-01 19:31 ` Mohamed Mediouni
2025-08-01 19:42 ` Pierrick Bouvier
2025-08-01 19:57 ` Mohamed Mediouni
2025-08-01 20:10 ` Pierrick Bouvier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250731052753.93255-6-mohamed@unpredictable.fr \
--to=mohamed@unpredictable.fr \
--cc=berrange@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sunilmut@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).