diff --git a/hypervisor/scenarios/hybrid/vm_configurations.c b/hypervisor/scenarios/hybrid/vm_configurations.c index 3e19ccad5..fbc0bda1e 100644 --- a/hypervisor/scenarios/hybrid/vm_configurations.c +++ b/hypervisor/scenarios/hybrid/vm_configurations.c @@ -13,7 +13,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { CONFIG_SAFETY_VM(1), .name = "ACRN PRE-LAUNCHED VM0", .guest_flags = 0UL, - .cpu_affinity_bitmap = VM0_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM0_CONFIG_CPU_AFFINITY, .memory = { .start_hpa = VM0_CONFIG_MEM_START_HPA, .size = VM0_CONFIG_MEM_SIZE, @@ -68,7 +68,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { }, { /* VM2 */ CONFIG_POST_STD_VM(1), - .cpu_affinity_bitmap = VM2_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM2_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM1_BASE, diff --git a/hypervisor/scenarios/industry/vm_configurations.c b/hypervisor/scenarios/industry/vm_configurations.c index 1f2cbaad0..8a5b23a1e 100644 --- a/hypervisor/scenarios/industry/vm_configurations.c +++ b/hypervisor/scenarios/industry/vm_configurations.c @@ -39,7 +39,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { }, { /* VM1 */ CONFIG_POST_STD_VM(1), - .cpu_affinity_bitmap = VM1_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM1_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM1_BASE, @@ -53,7 +53,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { { /* VM2 */ CONFIG_POST_RT_VM(1), .guest_flags = 0UL, - .cpu_affinity_bitmap = VM2_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM2_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM1_BASE, @@ -69,7 +69,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { }, { /* VM3 */ CONFIG_POST_STD_VM(2), - .cpu_affinity_bitmap = VM3_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM3_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM1_BASE, @@ -82,7 +82,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { }, { /* VM4 */ CONFIG_POST_STD_VM(3), - .cpu_affinity_bitmap = VM4_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM4_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM1_BASE, @@ -95,7 +95,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { }, { /* VM5 */ CONFIG_POST_STD_VM(4), - .cpu_affinity_bitmap = VM5_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM5_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM1_BASE, @@ -108,7 +108,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { }, { /* VM6 */ CONFIG_POST_STD_VM(5), - .cpu_affinity_bitmap = VM6_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM6_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM1_BASE, @@ -121,7 +121,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { }, { /* VM7 */ CONFIG_KATA_VM(1), - .cpu_affinity_bitmap = VM7_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM7_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = COM1_BASE, diff --git a/hypervisor/scenarios/logical_partition/vm_configurations.c b/hypervisor/scenarios/logical_partition/vm_configurations.c index f91a07eac..487d73cc3 100644 --- a/hypervisor/scenarios/logical_partition/vm_configurations.c +++ b/hypervisor/scenarios/logical_partition/vm_configurations.c @@ -14,7 +14,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { { /* VM0 */ CONFIG_PRE_STD_VM(1), .name = "ACRN PRE-LAUNCHED VM0", - .cpu_affinity_bitmap = VM0_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM0_CONFIG_CPU_AFFINITY, .memory = { .start_hpa = VM0_CONFIG_MEM_START_HPA, .size = VM0_CONFIG_MEM_SIZE, @@ -48,7 +48,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { { /* VM1 */ CONFIG_PRE_STD_VM(2), .name = "ACRN PRE-LAUNCHED VM1", - .cpu_affinity_bitmap = VM1_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM1_CONFIG_CPU_AFFINITY, .guest_flags = (GUEST_FLAG_RT | GUEST_FLAG_LAPIC_PASSTHROUGH), .memory = { .start_hpa = VM1_CONFIG_MEM_START_HPA, diff --git a/hypervisor/scenarios/sdc/vm_configurations.c b/hypervisor/scenarios/sdc/vm_configurations.c index 164cb3f10..70ff7f592 100644 --- a/hypervisor/scenarios/sdc/vm_configurations.c +++ b/hypervisor/scenarios/sdc/vm_configurations.c @@ -37,7 +37,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { }, { /* VM1 */ CONFIG_POST_STD_VM(1), - .cpu_affinity_bitmap = VM1_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM1_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = INVALID_COM_BASE, @@ -51,7 +51,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = { #if CONFIG_MAX_KATA_VM_NUM > 0 { /* VM2 */ CONFIG_KATA_VM(1), - .cpu_affinity_bitmap = VM2_CONFIG_CPU_AFFINITY, + .cpu_affinity = VM2_CONFIG_CPU_AFFINITY, .vuart[0] = { .type = VUART_LEGACY_PIO, .addr.port_base = INVALID_COM_BASE, diff --git a/misc/acrn-config/scenario_config/vm_configurations_c.py b/misc/acrn-config/scenario_config/vm_configurations_c.py index b76187d92..082d61be0 100644 --- a/misc/acrn-config/scenario_config/vm_configurations_c.py +++ b/misc/acrn-config/scenario_config/vm_configurations_c.py @@ -171,7 +171,7 @@ def cpu_affinity_output(vm_info, i, config): return cpu_bits = vm_info.get_cpu_bitmap(i) - print("\t\t.cpu_affinity_bitmap = VM{}_CONFIG_CPU_AFFINITY,".format(i), file=config) + print("\t\t.cpu_affinity = VM{}_CONFIG_CPU_AFFINITY,".format(i), file=config) def clos_output(vm_info, i, config):