From 0427de5ec405f75c6ec694cc02504436169ef21c Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Fri, 27 Dec 2019 16:35:26 +0800 Subject: [PATCH] acrn-config: Kata VM is not supported on dual-core systems KATA VM is not supported on dual-core systems override the MAX_KATA_VM_NUM to 0. Tracked-On: #4319 Signed-off-by: Wei Liu Acked-by: Victor Sun --- misc/acrn-config/board_config/new_board_kconfig.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc/acrn-config/board_config/new_board_kconfig.py b/misc/acrn-config/board_config/new_board_kconfig.py index 4e9ddd566..1b2c019c0 100644 --- a/misc/acrn-config/board_config/new_board_kconfig.py +++ b/misc/acrn-config/board_config/new_board_kconfig.py @@ -145,4 +145,9 @@ def generate_file(config): print("CONFIG_HV_RAM_START={}".format(hex(hv_start_addr)), file=config) print("CONFIG_HV_RAM_SIZE={}".format(hex(hv_ram_size)), file=config) + cpu_core_num = len(board_cfg_lib.get_processor_info()) + if cpu_core_num == 2: + print("# KATA VM is not supported on dual-core systems", file=config) + print("CONFIG_MAX_KATA_VM_NUM=0", file=config) + return err_dic