From 77f8eaa73a6401d501461f9a0b50071b9d99aba8 Mon Sep 17 00:00:00 2001 From: Arthur Sengileyev Date: Tue, 23 Aug 2022 18:18:21 +0300 Subject: [PATCH] Default qemu flags for Windows amd64 Signed-off-by: Arthur Sengileyev --- pkg/machine/qemu/options_windows_amd64.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pkg/machine/qemu/options_windows_amd64.go diff --git a/pkg/machine/qemu/options_windows_amd64.go b/pkg/machine/qemu/options_windows_amd64.go new file mode 100644 index 0000000000..680f08de00 --- /dev/null +++ b/pkg/machine/qemu/options_windows_amd64.go @@ -0,0 +1,18 @@ +package qemu + +var ( + QemuCommand = "qemu-system-x86_64" +) + +func (v *MachineVM) addArchOptions() []string { + opts := []string{"-machine", "q35,accel=whpx:tcg", "-cpu", "max,vmx=off,monitor=off"} + return opts +} + +func (v *MachineVM) prepare() error { + return nil +} + +func (v *MachineVM) archRemovalFiles() []string { + return []string{} +}