We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1099292 + a1403e9 commit 79d07bbCopy full SHA for 79d07bb
1 file changed
boot-qemu.py
@@ -434,7 +434,7 @@ def get_qemu_args(cfg):
434
kernel_arch = "arm64"
435
kernel_image = "Image.gz"
436
qemu = "qemu-system-aarch64"
437
- qemu_args += ["-machine", "virt,gic-version=max"]
+ machine = "virt,gic-version=max"
438
439
if not use_kvm:
440
cpu = "max"
@@ -458,7 +458,11 @@ def get_qemu_args(cfg):
458
cpu += ",pauth-impdef=true"
459
460
qemu_args += ["-cpu", cpu]
461
- qemu_args += ["-machine", "virtualization=true"]
+ # Boot with VHE emulation, which allows the kernel to run at EL2.
462
+ # KVM does not emulate VHE, so this cannot be unconditional.
463
+ machine += ",virtualization=true"
464
+
465
+ qemu_args += ["-machine", machine]
466
467
elif arch == "m68k":
468
append += " console=ttyS0,115200"
0 commit comments