Merge pull request #13038 from swordqiu/automated-cherry-pick-of-#13036-upstream-release-3.7

Automated cherry pick of #13036: fix: enable kvm_pv_eoi by default
This commit is contained in:
Zexi Li
2021-12-27 12:10:59 +08:00
committed by GitHub
+3
View File
@@ -478,8 +478,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"