Skip to content

Commit 7d17391

Browse files
jsun26intelwenlingz
authored andcommitted
Kconfig: remove MAX_KATA_VM_NUM
CONFIG_MAX_KATA_VM_NUM is a scenario specific configuration, so it is better to put the MACRO in scenario folder directly, to instead the Kconfig item in Kconfig file which should work for all scenarios; Tracked-On: #4616 Signed-off-by: Victor Sun <victor.sun@intel.com>
1 parent 4388099 commit 7d17391

File tree

7 files changed

+5
-11
lines changed

7 files changed

+5
-11
lines changed

Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,6 @@ hypervisor:
160160
fi
161161
$(MAKE) -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) BOARD_FILE=$(BOARD_FILE) SCENARIO_FILE=$(SCENARIO_FILE) clean;
162162
$(MAKE) -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) BOARD_FILE=$(BOARD_FILE) SCENARIO_FILE=$(SCENARIO_FILE) TARGET_DIR=$(abspath $(TARGET_DIR)) defconfig;
163-
@if [ "$(CONFIG_XML_ENABLED)" != "true" ] && [ ! -f $(KCONFIG_FILE) ]; then \
164-
if [ "$(SCENARIO)" != "sdc" ]; then \
165-
echo "CONFIG_MAX_KATA_VM_NUM=0" >> $(HV_OUT)/.config; \
166-
fi; \
167-
fi; \
168163
$(MAKE) -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) BOARD_FILE=$(BOARD_FILE) SCENARIO_FILE=$(SCENARIO_FILE) TARGET_DIR=$(abspath $(TARGET_DIR)) oldconfig;
169164
$(MAKE) -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) BOARD_FILE=$(BOARD_FILE) SCENARIO_FILE=$(SCENARIO_FILE) TARGET_DIR=$(abspath $(TARGET_DIR))
170165
#ifeq ($(FIRMWARE),uefi)

hypervisor/arch/x86/Kconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,6 @@ config L1D_FLUSH_VMENTRY_ENABLED
313313
bool "Enable L1 cache flush before VM entry"
314314
default n
315315

316-
config MAX_KATA_VM_NUM
317-
int "Maximum number of Kata Containers in SOS"
318-
range 0 1
319-
default 1 if SDC
320-
default 0 if !SDC
321-
322316
config UEFI_OS_LOADER_NAME
323317
string "UEFI OS loader name"
324318
default "\\EFI\\org.clearlinux\\bootloaderx64.efi"

hypervisor/scenarios/hybrid/vm_configurations.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define PRE_VM_NUM 1U
2121
#define SOS_VM_NUM 1U
2222
#define MAX_POST_VM_NUM 1U
23+
#define CONFIG_MAX_KATA_VM_NUM 0U
2324

2425
#define VM0_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(3U)}
2526
#define VM0_CONFIG_MEM_START_HPA 0x100000000UL

hypervisor/scenarios/industry/vm_configurations.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define PRE_VM_NUM 0U
1717
#define SOS_VM_NUM 1U
1818
#define MAX_POST_VM_NUM 2U
19+
#define CONFIG_MAX_KATA_VM_NUM 0U
1920

2021
/* Bits mask of guest flags that can be programmed by device model. Other bits are set by hypervisor only */
2122
#define DM_OWNED_GUEST_FLAG_MASK (GUEST_FLAG_SECURE_WORLD_ENABLED | GUEST_FLAG_LAPIC_PASSTHROUGH | \

hypervisor/scenarios/logical_partition/vm_configurations.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define PRE_VM_NUM 2U
2121
#define SOS_VM_NUM 0U
2222
#define MAX_POST_VM_NUM 0U
23+
#define CONFIG_MAX_KATA_VM_NUM 0U
2324

2425
/* The VM CONFIGs like:
2526
* VMX_CONFIG_VCPU_AFFINITY

hypervisor/scenarios/sdc/vm_configurations.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define PRE_VM_NUM 0U
1717
#define SOS_VM_NUM 1U
1818
#define MAX_POST_VM_NUM 2U /* including 1 KATA VM */
19+
#define CONFIG_MAX_KATA_VM_NUM 1U
1920

2021
/* Bits mask of guest flags that can be programmed by device model. Other bits are set by hypervisor only */
2122
#define DM_OWNED_GUEST_FLAG_MASK (GUEST_FLAG_SECURE_WORLD_ENABLED | GUEST_FLAG_LAPIC_PASSTHROUGH | \

hypervisor/scenarios/sdc2/vm_configurations.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define PRE_VM_NUM 0U
1717
#define SOS_VM_NUM 1U
1818
#define MAX_POST_VM_NUM 3U
19+
#define CONFIG_MAX_KATA_VM_NUM 0U
1920

2021
/* Bits mask of guest flags that can be programmed by device model. Other bits are set by hypervisor only */
2122
#define DM_OWNED_GUEST_FLAG_MASK (GUEST_FLAG_SECURE_WORLD_ENABLED | GUEST_FLAG_LAPIC_PASSTHROUGH | \

0 commit comments

Comments
 (0)