Skip to content

Commit

Permalink
Fix warning of unsupported feature on MacOS
Browse files Browse the repository at this point in the history
Adding the `-cpu host` option to the `addArchOptions` function for
darwin removes the warning message, "host doesn't support requested
feature: CPUID.80000001H:ECX.svm [bit 2]" by qemu-system-x86_64 when
using the `podman machine start` command on MacOS

Closes containers#11421

[NO TESTS NEEDED]

Signed-off-by: Scott Schreckengaust <[email protected]>
  • Loading branch information
scottschreckengaust authored and mheon committed Sep 20, 2021
1 parent c189c86 commit 96424a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/machine/qemu/options_darwin_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var (
)

func (v *MachineVM) addArchOptions() []string {
opts := []string{"-machine", "q35,accel=hvf:tcg"}
opts := []string{"-machine", "q35,accel=hvf:tcg", "-cpu", "host"}
return opts
}

Expand Down

0 comments on commit 96424a5

Please sign in to comment.