summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu
diff options
context:
space:
mode:
authorJonathan Springer <jonpspri@gmail.com>2021-09-05 08:32:52 -0400
committerJonathan Springer <jonpspri@gmail.com>2021-09-05 12:31:36 -0400
commitc01f7725a50e3d699abee717276ed17c42b0ef93 (patch)
treebeeb6d3cb7610db6614011bfe264e577ae96112a /pkg/machine/qemu
parent692e37f8f3e672ba76890c51739eed729edb1a39 (diff)
downloadpodman-c01f7725a50e3d699abee717276ed17c42b0ef93.tar.gz
podman-c01f7725a50e3d699abee717276ed17c42b0ef93.tar.bz2
podman-c01f7725a50e3d699abee717276ed17c42b0ef93.zip
TCG Accel fallback for Apple Silicon. Iss #10577
Cause qemu to fall back to using TCG acceleration when HVP acceleration is not available on Darwin Aarch64. Qemu prints a warning which it is desirable to leave to embarrass the upstream Qemu into approving the HVF patches. [NO TESTS NEEDED] Signed-off-by: Jonathan Springer <jspringer@us.ibm.com> Signed-off-by: Jonathan Springer <jonpspri@gmail.com>
Diffstat (limited to 'pkg/machine/qemu')
-rw-r--r--pkg/machine/qemu/options_darwin_arm64.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/machine/qemu/options_darwin_arm64.go b/pkg/machine/qemu/options_darwin_arm64.go
index 7513b3048..8c651584e 100644
--- a/pkg/machine/qemu/options_darwin_arm64.go
+++ b/pkg/machine/qemu/options_darwin_arm64.go
@@ -13,6 +13,7 @@ func (v *MachineVM) addArchOptions() []string {
ovmfDir := getOvmfDir(v.ImagePath, v.Name)
opts := []string{
"-accel", "hvf",
+ "-accel", "tcg",
"-cpu", "cortex-a57",
"-M", "virt,highmem=off",
"-drive", "file=/usr/local/share/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on",