mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-13 11:33:58 +00:00
hv: rename BOOT_CPU_ID to BSP_CPU_ID
1. Rename BOOT_CPU_ID to BSP_CPU_ID 2. Repace hardcoded value with BSP_CPU_ID when ID of BSP is referenced. Tracked-On: #4420 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
@@ -98,7 +98,7 @@ static bool handle_common_reset_reg_write(struct acrn_vm *vm, bool reset)
|
||||
* or pre-launched VM reset,
|
||||
* ACRN doesn't support re-launch, just shutdown the guest.
|
||||
*/
|
||||
const struct acrn_vcpu *bsp = vcpu_from_vid(vm, BOOT_CPU_ID);
|
||||
const struct acrn_vcpu *bsp = vcpu_from_vid(vm, BSP_CPU_ID);
|
||||
|
||||
pause_vm(vm);
|
||||
per_cpu(shutdown_vm_id, pcpuid_from_vcpu(bsp)) = vm->vm_id;
|
||||
|
||||
Reference in New Issue
Block a user