fix: enable kvm_pv_eoi by default

This commit is contained in:
Qiu Jian
2021-12-24 21:45:22 +08:00
parent dd8c012002
commit 9b035be9ef

View File

@@ -472,8 +472,11 @@ function nic_mtu() {
cpuType = "Penryn,vendor=GenuineIntel"
} else if options.HostOptions.HostCpuPassthrough {
cpuType = "host"
// https://unix.stackexchange.com/questions/216925/nmi-received-for-unknown-reason-20-do-you-have-a-strange-power-saving-mode-ena
cpuType += ",+kvm_pv_eoi"
} else {
cpuType = "qemu64"
cpuType += ",+kvm_pv_eoi"
if sysutils.IsProcessorIntel() {
cpuType += ",+vmx"
cpuType += ",+ssse3,+sse4.1,+sse4.2,-x2apic,+aes,+avx"