Skip to content

Commit

Permalink
test: Adding -cpu host for qemu for MacOS
Browse files Browse the repository at this point in the history
Adding the `-cpu host` option to the `qemuArgs` function for
darwin removes the warning message, "host doesn't support requested
feature: CPUID.80000001H:ECX.svm [bit 2]"

Signed-off-by: Praveen Kumar <[email protected]>
  • Loading branch information
praveenkumar authored and gbraad committed Jul 14, 2022
1 parent d59e827 commit ed3b72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func qemuExecutable() string {

func qemuArgs() string {
if runtime.GOOS == "darwin" {
return "-machine q35,accel=hvf:tcg -smp 4"
return "-machine q35,accel=hvf:tcg -smp 4 -cpu host"
}
return "-cpu host"
}
Expand Down

0 comments on commit ed3b72e

Please sign in to comment.