mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 12:42:54 +00:00
acrn-config: modify the key of vuart base
Return correct key of vuart base to webUI for parsing. Tracked-On: #4128 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
parent
26c45a0c70
commit
037e7a4a2c
@ -718,14 +718,14 @@ def avl_vuart_ui_select(scenario_info):
|
|||||||
vm_type = get_order_type_by_vmid(vm_i)
|
vm_type = get_order_type_by_vmid(vm_i)
|
||||||
|
|
||||||
if vm_type == "SOS_VM":
|
if vm_type == "SOS_VM":
|
||||||
key = "vm={}:vuart=0,base".format(vm_i)
|
key = "vm={},vuart=0,base".format(vm_i)
|
||||||
tmp_vuart[key] = ['SOS_COM1_BASE', 'INVALID_COM_BASE']
|
tmp_vuart[key] = ['SOS_COM1_BASE', 'INVALID_COM_BASE']
|
||||||
key = "vm={}:vuart=1,base".format(vm_i)
|
key = "vm={},vuart=1,base".format(vm_i)
|
||||||
tmp_vuart[key] = ['SOS_COM2_BASE', 'INVALID_COM_BASE']
|
tmp_vuart[key] = ['SOS_COM2_BASE', 'INVALID_COM_BASE']
|
||||||
else:
|
else:
|
||||||
key = "vm={}:vuart=0,base".format(vm_i)
|
key = "vm={},vuart=0,base".format(vm_i)
|
||||||
tmp_vuart[key] = ['INVALID_COM_BASE', 'COM1_BASE']
|
tmp_vuart[key] = ['INVALID_COM_BASE', 'COM1_BASE']
|
||||||
key = "vm={}:vuart=1,base".format(vm_i)
|
key = "vm={},vuart=1,base".format(vm_i)
|
||||||
tmp_vuart[key] = ['INVALID_COM_BASE', 'COM2_BASE']
|
tmp_vuart[key] = ['INVALID_COM_BASE', 'COM2_BASE']
|
||||||
|
|
||||||
#print(tmp_vuart)
|
#print(tmp_vuart)
|
||||||
|
Loading…
Reference in New Issue
Block a user