Skip to content

Commit

Permalink
config_tools: ACPI table needs to be generated automatedly for Pre-la…
Browse files Browse the repository at this point in the history
…unched VM

Currently, for pre-launched VM, ACPI table is generated only when "reboot=acpi"
is added to cmdline in the scenario file. This patch removes this check support
that ACPI table must be generated automatedly for the Pre-launched VM.

Tracked-On: projectacrn#8546
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
  • Loading branch information
Kunhui-Li committed Jan 3, 2024
1 parent fcff5ed commit 1e292a1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions misc/config_tools/acpi_gen/asl_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,13 +918,6 @@ def main(args):
kern_args = acrn_config_utilities.get_leaf_tag_map(scenario, "os_config", "bootargs")
kern_type = acrn_config_utilities.get_leaf_tag_map(scenario, "os_config", "kern_type")
for vm_id, passthru_devices in dict_passthru_devices.items():
bootargs_node= get_node(f"//vm[@id='{vm_id}']/os_config/bootargs", scenario_etree)
if bootargs_node is not None and kern_args[int(vm_id)].find('reboot=acpi') == -1 and kern_type[int(vm_id)] in ['KERNEL_BZIMAGE']:
emsg = "you need to specify 'reboot=acpi' in scenario file's bootargs for VM{}".format(vm_id)
print(emsg)
err_dic['vm,bootargs'] = emsg
break

print('start to generate ACPI ASL code for VM{}'.format(vm_id))
dest_vm_acpi_path = os.path.join(DEST_ACPI_PATH, 'ACPI_VM'+vm_id)
if not os.path.isdir(dest_vm_acpi_path):
Expand Down

0 comments on commit 1e292a1

Please sign in to comment.