mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 21:47:22 +00:00
config_tools: fix cpu_affinity cannot display issue
fix cpu_affinity cannot display issue Tracked-On: #6691 Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
parent
739d267f02
commit
1e9836caa8
@ -136,12 +136,23 @@ class Configurator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
newVM(vmid, load_order) {
|
newVM(vmid, load_order) {
|
||||||
return {
|
let newVMData = {
|
||||||
'@id': vmid,
|
'@id': vmid,
|
||||||
load_order: load_order,
|
load_order: load_order,
|
||||||
name: `VM${vmid}`,
|
name: `VM${vmid}`,
|
||||||
cpu_affinity: null
|
cpu_affinity: null
|
||||||
}
|
}
|
||||||
|
if (load_order !== 'SERVICE_VM') {
|
||||||
|
newVMData['cpu_affinity'] = {
|
||||||
|
pcpu: [
|
||||||
|
{
|
||||||
|
pcpu_id: null,
|
||||||
|
real_time_vcpu: 'n'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return newVMData
|
||||||
}
|
}
|
||||||
|
|
||||||
createNewScenario(pre, service, post) {
|
createNewScenario(pre, service, post) {
|
||||||
|
Loading…
Reference in New Issue
Block a user