Skip to content

Commit 79d07bb

Browse files
authored
Merge pull request #77 from nathanchance/combine-machine-flags-aarch64
boot-qemu.py: Combine aarch64 machine flags
2 parents 1099292 + a1403e9 commit 79d07bb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

boot-qemu.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def get_qemu_args(cfg):
434434
kernel_arch = "arm64"
435435
kernel_image = "Image.gz"
436436
qemu = "qemu-system-aarch64"
437-
qemu_args += ["-machine", "virt,gic-version=max"]
437+
machine = "virt,gic-version=max"
438438

439439
if not use_kvm:
440440
cpu = "max"
@@ -458,7 +458,11 @@ def get_qemu_args(cfg):
458458
cpu += ",pauth-impdef=true"
459459

460460
qemu_args += ["-cpu", cpu]
461-
qemu_args += ["-machine", "virtualization=true"]
461+
# 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]
462466

463467
elif arch == "m68k":
464468
append += " console=ttyS0,115200"

0 commit comments

Comments
 (0)