All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hw/arm/virt: Default enable the virtualization option(VHE) on A64FX
@ 2022-01-14  7:24 Shuuichirou Ishii
  2022-01-14  8:45 ` Andrew Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Shuuichirou Ishii @ 2022-01-14  7:24 UTC (permalink / raw)
  To: peter.maydell, mst, drjones, richard.henderson, f4bug, qemu-arm
  Cc: qemu-devel, ishii.shuuichir

At A64FX specification, VHE is enabled by default, so
the virtualization option should be enabled when -cpu a64fx
is specified.

Signed-off-by: Shuuichirou Ishii <ishii.shuuichir@fujitsu.com>
---
 hw/arm/virt.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index b45b52c90e..56acf5cc7e 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1932,6 +1932,12 @@ static void machvirt_init(MachineState *machine)
     firmware_loaded = virt_firmware_init(vms, sysmem,
                                          secure_sysmem ?: sysmem);
 
+    /* A64FX proceesor is supported the ARMv8.1-VHE */
+    if (!vms->virt &&
+            !strncmp(machine->cpu_type, ARM_CPU_TYPE_NAME("a64fx"), 13)) {
+        vms->virt = true;
+    }
+
     /* If we have an EL3 boot ROM then the assumption is that it will
      * implement PSCI itself, so disable QEMU's internal implementation
      * so it doesn't get in the way. Instead of starting secondary
-- 
2.27.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-17  7:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14  7:24 [PATCH] hw/arm/virt: Default enable the virtualization option(VHE) on A64FX Shuuichirou Ishii
2022-01-14  8:45 ` Andrew Jones
2022-01-17  7:52   ` ishii.shuuichir

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.