From 4c249a219e986ebbd6ece732bf9567e7e55a2e4b Mon Sep 17 00:00:00 2001 From: Arthur Sengileyev Date: Fri, 4 Aug 2023 22:26:04 +0300 Subject: [PATCH] Change default QEMU CPU level to `qemu64` on Windows amd64 Signed-off-by: Arthur Sengileyev --- pkg/machine/qemu/options_windows_amd64.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/machine/qemu/options_windows_amd64.go b/pkg/machine/qemu/options_windows_amd64.go index 081ee9ccd5..24cd8775c4 100644 --- a/pkg/machine/qemu/options_windows_amd64.go +++ b/pkg/machine/qemu/options_windows_amd64.go @@ -5,11 +5,9 @@ var ( ) func (v *MachineVM) addArchOptions(_ *setNewMachineCMDOpts) []string { - // "max" level is used, because "host" is not supported with "whpx" acceleration - // "vmx=off" disabled nested virtualization (not needed for podman) - // QEMU issue to track nested virtualization: https://gitlab.com/qemu-project/qemu/-/issues/628 - // "monitor=off" needed to support hosts, which have mwait calls disabled in BIOS/UEFI - opts := []string{"-machine", "q35,accel=whpx:tcg", "-cpu", "max,vmx=off,monitor=off"} + // "qemu64" level is used, because "host" is not supported with "whpx" acceleration. + // It is a stable choice for running on bare metal and inside Hyper-V machine with nested virtualization. + opts := []string{"-machine", "q35,accel=whpx:tcg", "-cpu", "qemu64"} return opts }