Remove Custom CPU update code.

This commit is contained in:
SimonFair
2025-01-29 22:55:00 +00:00
parent 7bad97cc53
commit 30e84566f7
2 changed files with 1 additions and 9 deletions

View File

@@ -428,15 +428,8 @@
}
#<cpu mode='custom' match='exact' check='partial'>
#<model fallback='allow'>Skylake-Client-noTSX-IBRS</model>
if (!empty($domain['cpumode']) && $domain['cpumode'] == 'custom') {
if (!empty($domain['cpucustom']['match'])) $cpumatch = " match='".$domain['cpucustom']['match'].'"';
if (!empty($domain['cpucustom']['check'])) $cpucheck = " check='".$domain['cpucustom']['check'].'"';
if (!empty($domain['cpucustom']['fallback'])) $cpufallback = " fallback='".$domain['cpucustom']['fallback'].'"';
if (!empty($domain['cpucustom']['model'])) $cpucustom = "<model $cpufallback>".$domain['cpucustom']['model']."</model>";
}
$cpustr = "<cpu $cpumode $cpumigrate $cpumatch $cpucheck>
$cpucustom
$cpustr = "<cpu $cpumode $cpumigrate>
<topology sockets='1' cores='{$intCores}' threads='{$intThreads}'/>
$cpucache
$cpufeatures

View File

@@ -1453,7 +1453,6 @@ private static $encoding = 'UTF-8';
'maxmem' => $lv->domain_get_memory($res),
'password' => '', //TODO?
'cpumode' => $lv->domain_get_cpu_type($res),
'cpucustom' => $lv->domain_get_cpu_custom($res),
'cpumigrate' => $lv->domain_get_cpu_migrate($res),
'vcpus' => $dom['nrVirtCpu'],
'vcpu' => $lv->domain_get_vcpu_pins($res),