Fix warning of unsupported feature on MacOS

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 #11421

[NO TESTS NEEDED]

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>
This commit is contained in:
Scott Schreckengaust
2021-09-03 15:49:31 -07:00
parent af58cb15d2
commit 57133bb334

View File

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