Skip to content

Commit

Permalink
Merge pull request #16609 from arixmkii/whpx-docs
Browse files Browse the repository at this point in the history
Documenting Hyper-V QEMU acceleration settings
  • Loading branch information
openshift-merge-robot authored Nov 28, 2022
2 parents 935c8eb + fbbef79 commit 6c7b836
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/machine/qemu/options_windows_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6c7b836

Please sign in to comment.