mirror of
https://github.com/unraid/webgui.git
synced 2026-02-28 05:09:57 -06:00
Remove Custom CPU update code.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user