mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-17 23:08:07 +00:00
config tool: add load_order and redefine vm_type
This patch includes: 1.add load_order(PRE_LAUNCHED_VM/SERVICE_VM/POST_LAUNCHED_VM) parameter 2.change vm_type parameter to values as RTVM, STANDARD_VM, TEE, REE TEE and REE are hide in UI. 3.deduce vm severity in vm_configuration from vm_type and load_order This patch not includes: change for scenario_config and functions called by scenario_config about checking v2->v3: *Refine template load_order v1->v2: *Change variable name from vm_type to load_order *Change LoadOptionType to LoadOrderType *Change VMOptionsType to VMType *Add TEE_VM/REE_VM description *Refine acrn:is-pre-launched-vm Tracked-On: #6690 Signed-off-by: hangliu1 <hang1.liu@linux.intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -800,8 +800,8 @@ def main(args):
|
||||
dict_pcpu_list = collections.OrderedDict()
|
||||
for vm in scenario_root.findall('vm'):
|
||||
vm_id = vm.attrib['id']
|
||||
vm_type_node = vm.find('vm_type')
|
||||
if (vm_type_node is not None) and (vm_type_node.text in ['PRE_STD_VM', 'SAFETY_VM', 'PRE_RT_VM']):
|
||||
load_order_node = vm.find('load_order')
|
||||
if (load_order_node is not None) and (load_order_node.text == 'PRE_LAUNCHED_VM'):
|
||||
dict_passthru_devices[vm_id] = []
|
||||
for pci_dev_node in vm.findall('pci_devs/pci_dev'):
|
||||
if pci_dev_node is not None and pci_dev_node.text is not None and pci_dev_node.text.strip():
|
||||
@@ -824,7 +824,8 @@ def main(args):
|
||||
for vm in scenario_root.findall('vm'):
|
||||
vm_id = vm.attrib['id']
|
||||
vm_type_node = vm.find('vm_type')
|
||||
if (vm_type_node is not None) and (vm_type_node.text in ['PRE_RT_VM']):
|
||||
load_order_node = vm.find('load_order')
|
||||
if (load_order_node is not None) and (load_order_node.text == 'PRE_LAUNCHED_VM') and (vm_type_node.text == 'RTVM'):
|
||||
PRELAUNCHED_RTVM_ID = vm_id
|
||||
break
|
||||
except:
|
||||
|
@@ -82,7 +82,7 @@ def asl_to_aml(dest_vm_acpi_path, dest_vm_acpi_bin_path, scenario_etree, allocat
|
||||
rtct = acpiparser.rtct.RTCT(os.path.join(dest_vm_acpi_path, acpi_table[0]))
|
||||
outfile = os.path.join(dest_vm_acpi_bin_path, acpi_table[1])
|
||||
# move the guest ssram area to the area next to ACPI region
|
||||
pre_rt_vms = common.get_node("//vm[vm_type ='PRE_RT_VM']", scenario_etree)
|
||||
pre_rt_vms = common.get_node("//vm[load_order ='PRE_LAUNCHED_VM' and vm_type ='RTVM']", scenario_etree)
|
||||
vm_id = pre_rt_vms.get("id")
|
||||
allocation_vm_node = common.get_node(f"/acrn-config/vm[@id = '{vm_id}']", allocation_etree)
|
||||
ssram_start_gpa = common.get_node("./ssram/start_gpa/text()", allocation_vm_node)
|
||||
|
Reference in New Issue
Block a user