@samitouri / QOSamiQemu / commits / e42a0b7644

hw/arm/virt: Enable GICv5 CPU interface when using GICv5

If we are using the GICv5 in the virt board, we need to set the has_gcie property on the CPU objects to tell them to implement the cpu interface part of GICv5. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Message-id: 20260327111700.795099-65-peter.maydell@linaro.org

Peter Maydell committed Mar 27, 2026 at 11:16 UTC e42a0b7644905acc6c3c0b375519444e4b334eae
1 file changed +8
hw/arm/virt.c
+8
@@ -3017,6 +3017,14 @@ static void machvirt_init(MachineState *machine)
3017 object_property_set_bool(cpuobj, "lpa2", false, NULL);
3018 }
3019
3020 + if (vms->gic_version == VIRT_GIC_VERSION_5) {
3021 + if (!object_property_find(cpuobj, "has_gcie")) {
3022 + error_report("Using GICv5 but guest CPU does not support it");
3023 + exit(1);
3024 + }
3025 + object_property_set_bool(cpuobj, "has_gcie", true, NULL);
3026 + }
3027 +
3028 if (object_property_find(cpuobj, "reset-cbar")) {
3029 object_property_set_int(cpuobj, "reset-cbar",
3030 vms->memmap[VIRT_CPUPERIPHS].base,