Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
acrn-config: a few changes on vm_config[] clos generation
- python script crashes if the desired 'clos' tag doesn't exist in the scenario xml file. In the following example, tag '0' doesn't exist: clos_set: {1: '0', 2: '0'} referring to tag 0 directly ("vm_info.clos_set[0] == None") causes crash. To fix it, this patch uses "if i in vm_info.clos_set:" where 'i' is the VM id and serves as the tag in the clos_set dictionary, to sanity check the dictionary. - if the hardware doesn't support CAT, don't need to generate clos entry in the vm_config[], which could be confusing. - to reduce redundant code, wrap the clos generation code as a function. Tracked-On: #2462 Signed-off-by: Zide Chen <zide.chen@intel.com>
- Loading branch information
Showing
1 changed file
with
20 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters