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:
Yonghua Huang
2020-02-21 11:29:57 +08:00
committed by wenlingz
parent 4adad73cfc
commit 64b874ce4c
18 changed files with 34 additions and 33 deletions

View File

@@ -202,7 +202,7 @@ static void vpic_notify_intr(struct acrn_vpic *vpic)
*/
i8259->intr_raised = true;
if (vpic->vm->wire_mode == VPIC_WIRE_INTR) {
struct acrn_vcpu *bsp = vcpu_from_vid(vpic->vm, BOOT_CPU_ID);
struct acrn_vcpu *bsp = vcpu_from_vid(vpic->vm, BSP_CPU_ID);
vcpu_inject_extint(bsp);
} else {
/*