Skip to content

Commit d5c3523

Browse files
KaigeFuwenlingz
authored andcommitted
hv: Update industry scenarios configuration
This patch makes the following changes: - Remove the 4th VM - Make the default vcpu num of RTVM as 2 --- v1 -> v2: Modify CONFIG_MAX_VM_NUM to 3U + KATA Tracked-On: #3925 Signed-off-by: Yan, Like <like.yan@intel.com> Signed-off-by: Kaige Fu <kaige.fu@intel.com>
1 parent 6f7081f commit d5c3523

File tree

2 files changed

+3
-22
lines changed

2 files changed

+3
-22
lines changed

hypervisor/scenarios/industry/vm_configurations.c

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = {
6868

6969
/* The hard RTVM must be launched as VM2 */
7070
.guest_flags = GUEST_FLAG_HIGHEST_SEVERITY,
71-
.vcpu_num = 1U,
71+
.vcpu_num = 2U,
7272
.vcpu_affinity = VM2_CONFIG_VCPU_AFFINITY,
7373
.vuart[0] = {
7474
.type = VUART_LEGACY_PIO,
@@ -83,22 +83,4 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = {
8383
.t_vuart.vuart_id = 1U,
8484
},
8585
},
86-
{
87-
.load_order = POST_LAUNCHED_VM,
88-
.uuid = {0x38U, 0x15U, 0x88U, 0x21U, 0x52U, 0x08U, 0x40U, 0x05U, \
89-
0xb7U, 0x2aU, 0x8aU, 0x60U, 0x9eU, 0x41U, 0x90U, 0xd0U},
90-
/* 38158821-5208-4005-b72a-8a609e4190d0 */
91-
.vcpu_num = 1U,
92-
.vcpu_affinity = VM3_CONFIG_VCPU_AFFINITY,
93-
.vuart[0] = {
94-
.type = VUART_LEGACY_PIO,
95-
.addr.port_base = COM1_BASE,
96-
.irq = COM1_IRQ,
97-
},
98-
.vuart[1] = {
99-
.type = VUART_LEGACY_PIO,
100-
.addr.port_base = INVALID_COM_BASE,
101-
}
102-
103-
}
10486
};

hypervisor/scenarios/industry/vm_configurations.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <misc_cfg.h>
1111

12-
#define CONFIG_MAX_VM_NUM (4U + CONFIG_MAX_KATA_VM_NUM)
12+
#define CONFIG_MAX_VM_NUM (3U + CONFIG_MAX_KATA_VM_NUM)
1313

1414
/* Bits mask of guest flags that can be programmed by device model. Other bits are set by hypervisor only */
1515
#define DM_OWNED_GUEST_FLAG_MASK (GUEST_FLAG_SECURE_WORLD_ENABLED | GUEST_FLAG_LAPIC_PASSTHROUGH | \
@@ -29,7 +29,6 @@
2929
SOS_BOOTARGS_DIFF
3030

3131
#define VM1_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(1U)}
32-
#define VM2_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(2U)}
33-
#define VM3_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(3U)}
32+
#define VM2_CONFIG_VCPU_AFFINITY {AFFINITY_CPU(2U), AFFINITY_CPU(3U)}
3433

3534
#endif /* VM_CONFIGURATIONS_H */

0 commit comments

Comments
 (0)