mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +00:00
acrn-config: refine vcpu affinity/number for SDC scenario
For SDC scenario, support kata vm would be triggered from webUI, and will store the kata vm information to the scenario config file. Then, vcpu affinity/number should be refined for vm1 and kata vm. Note: with this patch, user should add/remove the kata vm in SDC scenario webUI and its number should match MAX_KATA_VM_NUM in hypervisor/arch/x86/Kconfig. 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:
@@ -10,7 +10,6 @@ HEADER_LICENSE = common.open_license()
|
||||
BOARD_INFO_FILE = "board_info.txt"
|
||||
SCENARIO_INFO_FILE = ""
|
||||
|
||||
VM_COUNT = 0
|
||||
LOAD_ORDER_TYPE = ['PRE_LAUNCHED_VM', 'SOS_VM', 'POST_LAUNCHED_VM']
|
||||
START_HPA_LIST = ['0', '0x100000000', '0x120000000']
|
||||
|
||||
@@ -35,6 +34,16 @@ COMMUNICATE_VM_ID = []
|
||||
|
||||
ERR_LIST = {}
|
||||
|
||||
VM_COUNT = 0
|
||||
DEFAULT_VM_COUNT = {
|
||||
'sdc':2,
|
||||
'sdc2':4,
|
||||
'industry':3,
|
||||
'hybrid':3,
|
||||
'logical_partition':2,
|
||||
}
|
||||
KATA_VM_COUNT = 0
|
||||
|
||||
def prepare(check_git):
|
||||
""" Check environment """
|
||||
return common.check_env(check_git)
|
||||
|
||||
Reference in New Issue
Block a user