mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-14 05:19:42 +00:00
config_tools: remove KATA and replace UUID with vmname to identify a vm
1. remove CONFIG_KATA_VM, CONFIG_MAX_KATA_VM_NUM and KATA_VM related code. 2. remove KATA_VM in scenario xml files. 3. remove KATA vm type in UI. 4. remove UUID DB. 5. remove uuid in the launch script generation logic. 6. use vmname to identify a vm. (eg: <name>ACRN_SOS_VM</name>) add the check logic to ensure vm name is a must-set item, not duplicated, and the string length is [1-15] and the whitespace is not allowed. 7. enlarge the max VM num to 32. Tracked-On: #6685 Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
This commit is contained in:
@@ -31,9 +31,6 @@ def get_pre_vm_type(vm_type, vm_i):
|
||||
|
||||
def get_post_vm_type(vm_type, vm_i):
|
||||
|
||||
if vm_type == "KATA_VM":
|
||||
return "CONFIG_KATA_VM(1)"
|
||||
|
||||
if vm_type == "POST_RT_VM":
|
||||
return "CONFIG_POST_RT_VM(1)"
|
||||
|
||||
|
@@ -28,14 +28,12 @@ def scenario_vm_num(scenario_items, config):
|
||||
print("", file=config)
|
||||
print("/* SERVICE_VM_NUM can only be 0U or 1U;", file=config)
|
||||
print(" * When SERVICE_VM_NUM is 0U, MAX_POST_VM_NUM must be 0U too;", file=config)
|
||||
print(" * MAX_POST_VM_NUM must be bigger than CONFIG_MAX_KATA_VM_NUM;", file=config)
|
||||
print(" */", file=config)
|
||||
|
||||
load_type_cnt = scenario_items['vm'].load_order_cnt
|
||||
print("#define PRE_VM_NUM\t\t\t{}U".format(load_type_cnt.pre_vm), file=config)
|
||||
print("#define SERVICE_VM_NUM\t\t\t{}U".format(load_type_cnt.sos_vm), file=config)
|
||||
print("#define MAX_POST_VM_NUM\t\t\t{}U".format(load_type_cnt.post_vm), file=config)
|
||||
print("#define CONFIG_MAX_KATA_VM_NUM\t\t{}U".format(scenario_cfg_lib.KATA_VM_COUNT), file=config)
|
||||
|
||||
|
||||
def gen_pre_launch_vm(scenario_items, config):
|
||||
|
Reference in New Issue
Block a user