mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: set vcpu vendor_id based on host cpu vendor_id (#17711)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -136,6 +136,11 @@ func (x86 *X86) GenerateCpuDesc(cpus uint, cpuMax uint, s KVMGuestInstance) (*de
|
||||
var accel, cpuType, vendor, level string
|
||||
var features = make(map[string]bool, 0)
|
||||
if s.IsKvmSupport() {
|
||||
if isCPUIntel {
|
||||
vendor = "GenuineIntel"
|
||||
} else if isCPUAMD {
|
||||
vendor = "AuthenticAMD"
|
||||
}
|
||||
accel = "kvm"
|
||||
if s.GetOsName() == qemu.OS_NAME_MACOS {
|
||||
cpuType = "Penryn"
|
||||
|
||||
Reference in New Issue
Block a user