From fbbef79c88e0fce03556d9b4b585fc5084efedc2 Mon Sep 17 00:00:00 2001 From: Arthur Sengileyev Date: Thu, 24 Nov 2022 15:08:14 +0200 Subject: [PATCH] Documenting Hyper-V QEMU acceleration settings Signed-off-by: Arthur Sengileyev --- pkg/machine/qemu/options_windows_amd64.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/machine/qemu/options_windows_amd64.go b/pkg/machine/qemu/options_windows_amd64.go index 680f08de00..b0eaeb5a84 100644 --- a/pkg/machine/qemu/options_windows_amd64.go +++ b/pkg/machine/qemu/options_windows_amd64.go @@ -5,6 +5,10 @@ var ( ) func (v *MachineVM) addArchOptions() []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"} return opts }