Skip to content

Commit

Permalink
Explicitly set -cpu Nehalem on x86 qemu when COSA_NO_KVM=1
Browse files Browse the repository at this point in the history
  • Loading branch information
LorbusChris committed Sep 6, 2022
1 parent b4cb857 commit 28fc80b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mantle/platform/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,13 @@ func baseQemuArgs() []string {
}
if kvm {
ret = append(ret, "-cpu", "host")
} else {
if system.RpmArch() == "x86_64" {
// the default qemu64 CPU model does not support x86_64_v2
// causing crashes on EL9+ kernels
// see https://bugzilla.redhat.com/show_bug.cgi?id=2060839
ret = append(ret, "-cpu", "Nehalem")
}
}
return ret
}
Expand Down

0 comments on commit 28fc80b

Please sign in to comment.