acrn-config: launch refinement on vcpu affinity and uos image

1. The vcpus of UOS are configured in vm configuration, they should be offlined from
sos before vm start.
2. retry offline cpu for all UOS type.
3. uos image name will be based on vm name instead of input parameter.
4. correct the unexpected token ';;' in launch config.

Tracked-On: #4145
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Wei Liu
2019-11-22 11:06:11 +08:00
committed by wenlingz
parent d581473c82
commit 31d023e8f9
3 changed files with 43 additions and 26 deletions

View File

@@ -368,6 +368,17 @@ def get_vpid_from_bdf(bdf_vpid_map, bdf_list):
return vpid_list
def get_leaf_tag_map(info_file, prime_item, item):
"""
:param info_file: some configurations in the info file
:param prime_item: the prime item in xml file
:param item: the item in xml file
:return: dictionary which item value could be indexed by vmid
"""
vmid_item_dic = common.get_leaf_tag_map(info_file, prime_item, item)
return vmid_item_dic
def gen_patch(srcs_list, launch_name):
"""
Generate patch and apply to local source code