diff --git a/misc/acrn-config/hv_config/hv_item.py b/misc/acrn-config/hv_config/hv_item.py index 74dbffbcb..a15cd7ec0 100644 --- a/misc/acrn-config/hv_config/hv_item.py +++ b/misc/acrn-config/hv_config/hv_item.py @@ -51,7 +51,6 @@ class CapHv: def __init__(self, hv_file): self.hv_file = hv_file - self.max_kata_vm_num = 0 self.max_emu_mmio_regions = 0 self.max_pt_irq_entries = 0 self.max_ioapic_num = 0 @@ -62,7 +61,6 @@ class CapHv: self.max_msix_table_num = 0 def get_info(self): - self.max_kata_vm_num = common.get_hv_item_tag(self.hv_file, "CAPACITIES", "MAX_KATA_VM_NUM") self.max_emu_mmio_regions = common.get_hv_item_tag(self.hv_file, "CAPACITIES", "MAX_EMULATED_MMIO") self.max_pt_irq_entries = common.get_hv_item_tag(self.hv_file, "CAPACITIES", "MAX_PT_IRQ_ENTRIES") self.max_ioapic_num = common.get_hv_item_tag(self.hv_file, "CAPACITIES", "MAX_IOAPIC_NUM") @@ -73,7 +71,6 @@ class CapHv: self.max_msix_table_num = common.get_hv_item_tag(self.hv_file, "CAPACITIES", "MAX_MSIX_TABLE_NUM") def check_item(self): - hv_cfg_lib.hv_range_check(self.max_kata_vm_num, "CAPACITIES", "MAX_KATA_VM_NUM", hv_cfg_lib.RANGE_DB['KATA_VM_NUM']) hv_cfg_lib.hv_range_check(self.max_emu_mmio_regions, "CAPACITIES", "MAX_EMULATED_MMIO", hv_cfg_lib.RANGE_DB['EMULATED_MMIO_REGIONS']) hv_cfg_lib.hv_range_check(self.max_pt_irq_entries, "CAPACITIES", "MAX_PT_IRQ_ENTRIES", hv_cfg_lib.RANGE_DB['PT_IRQ_ENTRIES']) hv_cfg_lib.hv_range_check(self.max_ioapic_num, "CAPACITIES", "MAX_IOAPIC_NUM", hv_cfg_lib.RANGE_DB['IOAPIC_NUM']) diff --git a/misc/acrn-config/library/hv_cfg_lib.py b/misc/acrn-config/library/hv_cfg_lib.py index e5c718ea8..920a235d7 100644 --- a/misc/acrn-config/library/hv_cfg_lib.py +++ b/misc/acrn-config/library/hv_cfg_lib.py @@ -16,7 +16,6 @@ SCHEDULER_TYPE = ['SCHED_NOOP', 'SCHED_IORR', 'SCHED_BVT'] RANGE_DB = { 'LOG_LEVEL':{'min':0,'max':6}, 'LOG_DESTINATION_BITMAP':{'min':0,'max':7}, - 'KATA_VM_NUM':{'min':0,'max':1}, 'EMULATED_MMIO_REGIONS':{'min':0,'max':128}, 'PT_IRQ_ENTRIES':{'min':0,'max':256}, 'IOAPIC_NUM':{'min':1,'max':10}, diff --git a/misc/acrn-config/library/scenario_cfg_lib.py b/misc/acrn-config/library/scenario_cfg_lib.py index 07b1a6bac..31c034574 100644 --- a/misc/acrn-config/library/scenario_cfg_lib.py +++ b/misc/acrn-config/library/scenario_cfg_lib.py @@ -126,6 +126,7 @@ def load_vm_check(load_vms, item): :param item: vm name item in xml :return: None """ + global KATA_VM_COUNT sos_vm_ids = [] pre_vm_ids = [] post_vm_ids = [] @@ -147,7 +148,7 @@ def load_vm_check(load_vms, item): if "PRE_LAUNCHED_VM" == VM_DB[load_str]['load_type']: pre_vm_ids.append(order_i) - if "POST_LAUNCHED_VM" == VM_DB[load_str]['load_type']: + if "POST_STD_VM" == load_str: post_vm_ids.append(order_i) if "KATA_VM" == load_str: @@ -156,6 +157,7 @@ def load_vm_check(load_vms, item): if "POST_RT_VM" == load_str: rt_vm_ids.append(order_i) + KATA_VM_COUNT = len(kata_vm_ids) if len(kata_vm_ids) > len(UUID_DB["KATA_VM"]): key = "vm:id={},{}".format(kata_vm_ids[0], item) ERR_LIST[key] = "KATA VM number should not be greater than {}".format(len(UUID_DB["KATA_VM"])) diff --git a/misc/acrn-config/scenario_config/scenario_cfg_gen.py b/misc/acrn-config/scenario_config/scenario_cfg_gen.py index 52c76af32..f285e9488 100755 --- a/misc/acrn-config/scenario_config/scenario_cfg_gen.py +++ b/misc/acrn-config/scenario_config/scenario_cfg_gen.py @@ -64,7 +64,6 @@ def get_scenario_item_values(board_info, scenario_info): scenario_item_values["hv,DEBUG_OPTIONS,SERIAL_CONSOLE"] = board_cfg_lib.get_ttys_info(board_info) scenario_item_values["hv,DEBUG_OPTIONS,LOG_DESTINATION"] = hv_cfg_lib.get_select_range("DEBUG_OPTIONS", "LOG_DESTINATION_BITMAP") - scenario_item_values["hv,CAPACITIES,MAX_KATA_VM_NUM"] = hv_cfg_lib.get_select_range("CAPACITIES", "KATA_VM_NUM") scenario_item_values["hv,CAPACITIES,MAX_IOAPIC_NUM"] = hv_cfg_lib.get_select_range("CAPACITIES", "IOAPIC_NUM") scenario_item_values["hv,FEATURES,MULTIBOOT2"] = hv_cfg_lib.N_Y @@ -170,12 +169,6 @@ def main(args): common.print_red("Validate the scenario item failure", err=True) return err_dic - # get kata vm count - scenario_cfg_lib.KATA_VM_COUNT = int(scenario_items['hv'].cap.max_kata_vm_num) - if scenario_cfg_lib.KATA_VM_COUNT > 1: - err_dic['scenario config'] = "Only one kata vm is supported!" - return err_dic - # generate board defconfig with open(config_hv, 'w+') as config: err_dic = board_defconfig.generate_file(scenario_items['hv'], config) diff --git a/misc/acrn-config/scenario_config/vm_configurations_h.py b/misc/acrn-config/scenario_config/vm_configurations_h.py index 7cab385fe..e4c964f96 100644 --- a/misc/acrn-config/scenario_config/vm_configurations_h.py +++ b/misc/acrn-config/scenario_config/vm_configurations_h.py @@ -59,11 +59,10 @@ def clos_config_output(vm_info, i, config): def scenario_vm_num(scenario_items, config): load_type_cnt = scenario_items['vm'].load_order_cnt - kata_vm_num = scenario_items['hv'].cap.max_kata_vm_num print("#define PRE_VM_NUM\t\t{}U".format(load_type_cnt.pre_vm), file=config) print("#define SOS_VM_NUM\t\t{}U".format(load_type_cnt.sos_vm), file=config) print("#define MAX_POST_VM_NUM\t\t{}U".format(load_type_cnt.post_vm), file=config) - print("#define CONFIG_MAX_KATA_VM_NUM\t\t{}U".format(kata_vm_num), file=config) + print("#define CONFIG_MAX_KATA_VM_NUM\t\t{}U".format(scenario_cfg_lib.KATA_VM_COUNT), file=config) def gen_pre_launch_vm(vm_info, config): diff --git a/misc/acrn-config/xmls/config-xmls/apl-mrb/hybrid.xml b/misc/acrn-config/xmls/config-xmls/apl-mrb/hybrid.xml index 22e5b452f..34618ee83 100644 --- a/misc/acrn-config/xmls/config-xmls/apl-mrb/hybrid.xml +++ b/misc/acrn-config/xmls/config-xmls/apl-mrb/hybrid.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/apl-mrb/industry.xml b/misc/acrn-config/xmls/config-xmls/apl-mrb/industry.xml index 6a6e88d45..5369bf3c1 100644 --- a/misc/acrn-config/xmls/config-xmls/apl-mrb/industry.xml +++ b/misc/acrn-config/xmls/config-xmls/apl-mrb/industry.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/apl-mrb/logical_partition.xml b/misc/acrn-config/xmls/config-xmls/apl-mrb/logical_partition.xml index f41d900ca..dc8f41a0e 100644 --- a/misc/acrn-config/xmls/config-xmls/apl-mrb/logical_partition.xml +++ b/misc/acrn-config/xmls/config-xmls/apl-mrb/logical_partition.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/apl-mrb/sdc.xml b/misc/acrn-config/xmls/config-xmls/apl-mrb/sdc.xml index 970e73780..81f511013 100644 --- a/misc/acrn-config/xmls/config-xmls/apl-mrb/sdc.xml +++ b/misc/acrn-config/xmls/config-xmls/apl-mrb/sdc.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 1 96 120 64 @@ -138,12 +137,12 @@ VUART_LEGACY_PIO INVALID_COM_BASE - COM1_BASE + COM1_IRQ VUART_LEGACY_PIO INVALID_COM_BASE - COM2_BASE + COM2_IRQ 0 0 diff --git a/misc/acrn-config/xmls/config-xmls/apl-up2-n3350/logical_partition.xml b/misc/acrn-config/xmls/config-xmls/apl-up2-n3350/logical_partition.xml index 1ed8ecaf1..27a9c84c5 100644 --- a/misc/acrn-config/xmls/config-xmls/apl-up2-n3350/logical_partition.xml +++ b/misc/acrn-config/xmls/config-xmls/apl-up2-n3350/logical_partition.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/apl-up2/hybrid.xml b/misc/acrn-config/xmls/config-xmls/apl-up2/hybrid.xml index 43e674d1a..428c40433 100644 --- a/misc/acrn-config/xmls/config-xmls/apl-up2/hybrid.xml +++ b/misc/acrn-config/xmls/config-xmls/apl-up2/hybrid.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/apl-up2/industry.xml b/misc/acrn-config/xmls/config-xmls/apl-up2/industry.xml index f1481509a..dcd29b9a0 100644 --- a/misc/acrn-config/xmls/config-xmls/apl-up2/industry.xml +++ b/misc/acrn-config/xmls/config-xmls/apl-up2/industry.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/apl-up2/logical_partition.xml b/misc/acrn-config/xmls/config-xmls/apl-up2/logical_partition.xml index d80cb2095..7ad615d6f 100644 --- a/misc/acrn-config/xmls/config-xmls/apl-up2/logical_partition.xml +++ b/misc/acrn-config/xmls/config-xmls/apl-up2/logical_partition.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/apl-up2/sdc.xml b/misc/acrn-config/xmls/config-xmls/apl-up2/sdc.xml index 996a9491c..aca5426c6 100644 --- a/misc/acrn-config/xmls/config-xmls/apl-up2/sdc.xml +++ b/misc/acrn-config/xmls/config-xmls/apl-up2/sdc.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 1 96 120 64 @@ -138,12 +137,12 @@ VUART_LEGACY_PIO INVALID_COM_BASE - COM1_BASE + COM1_IRQ VUART_LEGACY_PIO INVALID_COM_BASE - COM2_BASE + COM2_IRQ 0 0 diff --git a/misc/acrn-config/xmls/config-xmls/generic/hybrid.xml b/misc/acrn-config/xmls/config-xmls/generic/hybrid.xml index 5c2d91c53..022f02e52 100644 --- a/misc/acrn-config/xmls/config-xmls/generic/hybrid.xml +++ b/misc/acrn-config/xmls/config-xmls/generic/hybrid.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/generic/industry.xml b/misc/acrn-config/xmls/config-xmls/generic/industry.xml index 2aa2c1f46..536009c7a 100644 --- a/misc/acrn-config/xmls/config-xmls/generic/industry.xml +++ b/misc/acrn-config/xmls/config-xmls/generic/industry.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/generic/logical_partition.xml b/misc/acrn-config/xmls/config-xmls/generic/logical_partition.xml index b9eb1a4ec..468674390 100644 --- a/misc/acrn-config/xmls/config-xmls/generic/logical_partition.xml +++ b/misc/acrn-config/xmls/config-xmls/generic/logical_partition.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/generic/sdc.xml b/misc/acrn-config/xmls/config-xmls/generic/sdc.xml index ac1507572..f55c15cc4 100644 --- a/misc/acrn-config/xmls/config-xmls/generic/sdc.xml +++ b/misc/acrn-config/xmls/config-xmls/generic/sdc.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 @@ -135,12 +134,12 @@ VUART_LEGACY_PIO INVALID_COM_BASE - COM1_BASE + COM1_IRQ VUART_LEGACY_PIO INVALID_COM_BASE - COM2_BASE + COM2_IRQ 0 0 diff --git a/misc/acrn-config/xmls/config-xmls/nuc6cayh/hybrid.xml b/misc/acrn-config/xmls/config-xmls/nuc6cayh/hybrid.xml index 1cd665679..1fdd7c2e4 100644 --- a/misc/acrn-config/xmls/config-xmls/nuc6cayh/hybrid.xml +++ b/misc/acrn-config/xmls/config-xmls/nuc6cayh/hybrid.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/nuc6cayh/industry.xml b/misc/acrn-config/xmls/config-xmls/nuc6cayh/industry.xml index af2d425b1..458f0a8ee 100644 --- a/misc/acrn-config/xmls/config-xmls/nuc6cayh/industry.xml +++ b/misc/acrn-config/xmls/config-xmls/nuc6cayh/industry.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/nuc6cayh/logical_partition.xml b/misc/acrn-config/xmls/config-xmls/nuc6cayh/logical_partition.xml index 8d9a47275..af356bab3 100644 --- a/misc/acrn-config/xmls/config-xmls/nuc6cayh/logical_partition.xml +++ b/misc/acrn-config/xmls/config-xmls/nuc6cayh/logical_partition.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/nuc6cayh/sdc.xml b/misc/acrn-config/xmls/config-xmls/nuc6cayh/sdc.xml index 7fbd689f0..beaa905b0 100644 --- a/misc/acrn-config/xmls/config-xmls/nuc6cayh/sdc.xml +++ b/misc/acrn-config/xmls/config-xmls/nuc6cayh/sdc.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 1 96 120 64 @@ -138,12 +137,12 @@ VUART_LEGACY_PIO INVALID_COM_BASE - COM1_BASE + COM1_IRQ VUART_LEGACY_PIO INVALID_COM_BASE - COM2_BASE + COM2_IRQ 0 0 diff --git a/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/hybrid.xml b/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/hybrid.xml index 6b91cb738..0c45d816b 100644 --- a/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/hybrid.xml +++ b/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/hybrid.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/industry.xml b/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/industry.xml index 2f2589a6e..63eb227e8 100644 --- a/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/industry.xml +++ b/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/industry.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/logical_partition.xml b/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/logical_partition.xml index ee9a03bf1..625b75450 100644 --- a/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/logical_partition.xml +++ b/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/logical_partition.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/sdc.xml b/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/sdc.xml index 5b5a647b8..8dd60018e 100644 --- a/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/sdc.xml +++ b/misc/acrn-config/xmls/config-xmls/nuc7i7dnb/sdc.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 1 96 120 64 @@ -137,12 +136,12 @@ VUART_LEGACY_PIO INVALID_COM_BASE - COM1_BASE + COM1_IRQ VUART_LEGACY_PIO INVALID_COM_BASE - COM2_BASE + COM2_IRQ 0 0 diff --git a/misc/acrn-config/xmls/config-xmls/template/HV.xml b/misc/acrn-config/xmls/config-xmls/template/HV.xml index cfa001a32..d88d741a1 100644 --- a/misc/acrn-config/xmls/config-xmls/template/HV.xml +++ b/misc/acrn-config/xmls/config-xmls/template/HV.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/tgl-rvp/industry.xml b/misc/acrn-config/xmls/config-xmls/tgl-rvp/industry.xml index f9fb4061a..7e3d04b2d 100644 --- a/misc/acrn-config/xmls/config-xmls/tgl-rvp/industry.xml +++ b/misc/acrn-config/xmls/config-xmls/tgl-rvp/industry.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/hybrid.xml b/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/hybrid.xml index 349b23dfa..99db2a6ea 100644 --- a/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/hybrid.xml +++ b/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/hybrid.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/industry.xml b/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/industry.xml index 4996dc5e6..a09b63574 100644 --- a/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/industry.xml +++ b/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/industry.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/logical_partition.xml b/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/logical_partition.xml index 7c693312c..d3447b03c 100644 --- a/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/logical_partition.xml +++ b/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/logical_partition.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/sdc.xml b/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/sdc.xml index 31f8bcd7e..76e3c7bca 100644 --- a/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/sdc.xml +++ b/misc/acrn-config/xmls/config-xmls/whl-ipc-i5/sdc.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 1 96 120 64 @@ -137,12 +136,12 @@ VUART_LEGACY_PIO INVALID_COM_BASE - COM1_BASE + COM1_IRQ VUART_LEGACY_PIO INVALID_COM_BASE - COM2_BASE + COM2_IRQ 0 0 diff --git a/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/hybrid.xml b/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/hybrid.xml index dac3fbc1e..e91fd19e7 100644 --- a/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/hybrid.xml +++ b/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/hybrid.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/industry.xml b/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/industry.xml index d52e46adf..b8370e246 100644 --- a/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/industry.xml +++ b/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/industry.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/logical_partition.xml b/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/logical_partition.xml index de8e185c5..ac011c2b4 100644 --- a/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/logical_partition.xml +++ b/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/logical_partition.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 0 96 120 64 diff --git a/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/sdc.xml b/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/sdc.xml index 98a984911..1af6b189a 100644 --- a/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/sdc.xml +++ b/misc/acrn-config/xmls/config-xmls/whl-ipc-i7/sdc.xml @@ -35,7 +35,6 @@ 0x100 256 1 - 1 96 120 64 @@ -137,12 +136,12 @@ VUART_LEGACY_PIO INVALID_COM_BASE - COM1_BASE + COM1_IRQ VUART_LEGACY_PIO INVALID_COM_BASE - COM2_BASE + COM2_IRQ 0 0