summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2022-06-10 09:14:50 -0400
committerAshley Cui <acui@redhat.com>2022-06-10 09:21:04 -0400
commit8d3e6577ae4b5c6a6ed25ff5c332df042094e415 (patch)
tree348e50aa589136c1d256f9ae16d55f8dfbfe5140
parent874ca426eb51e2b1c9fd1d0c052de2e21f4afd2d (diff)
downloadpodman-8d3e6577ae4b5c6a6ed25ff5c332df042094e415.tar.gz
podman-8d3e6577ae4b5c6a6ed25ff5c332df042094e415.tar.bz2
podman-8d3e6577ae4b5c6a6ed25ff5c332df042094e415.zip
Fix M1 QEMU flags
When calling QEMU, the CPU arch should be host, and highmem should be on, or else the VM start fails. [NO NEW TESTS NEEDED] Signed-off-by: Ashley Cui <acui@redhat.com>
-rw-r--r--pkg/machine/qemu/options_darwin_arm64.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/machine/qemu/options_darwin_arm64.go b/pkg/machine/qemu/options_darwin_arm64.go
index 4c954af00..8930041b7 100644
--- a/pkg/machine/qemu/options_darwin_arm64.go
+++ b/pkg/machine/qemu/options_darwin_arm64.go
@@ -15,8 +15,8 @@ func (v *MachineVM) addArchOptions() []string {
opts := []string{
"-accel", "hvf",
"-accel", "tcg",
- "-cpu", "cortex-a57",
- "-M", "virt,highmem=off",
+ "-cpu", "host",
+ "-M", "virt,highmem=on",
"-drive", "file=" + getEdk2CodeFd("edk2-aarch64-code.fd") + ",if=pflash,format=raw,readonly=on",
"-drive", "file=" + ovmfDir + ",if=pflash,format=raw"}
return opts