From 69e14e2aaa0556f4df5a2c8c2608967f85633d6e Mon Sep 17 00:00:00 2001 From: AlexSSD7 Date: Fri, 13 Oct 2023 08:59:09 +0200 Subject: [PATCH] Enforce -cpu=host at all times --- vm/cfg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/cfg.go b/vm/cfg.go index 382f432..e033d70 100644 --- a/vm/cfg.go +++ b/vm/cfg.go @@ -63,6 +63,7 @@ func configureBaseVMCmd(logger *slog.Logger, cfg Config) (string, []qemucli.Arg, qemucli.MustNewStringArg("serial", "stdio"), qemucli.MustNewUintArg("m", cfg.MemoryAlloc), qemucli.MustNewUintArg("smp", runtime.NumCPU()), + qemucli.MustNewStringArg("cpu", "host"), } var accel []qemucli.KeyValueArgItem @@ -96,7 +97,6 @@ func configureBaseVMCmd(logger *slog.Logger, cfg Config) (string, []qemucli.Arg, {Key: "type", Value: "virt"}, {Key: "highmem", Value: "off"}, }), - qemucli.MustNewStringArg("cpu", "host"), ) baseCmd += "-aarch64"