mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-06 08:04:55 +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:
@@ -1412,7 +1412,7 @@ void profiling_setup(void)
|
||||
dev_dbg(DBG_LEVEL_PROFILING, "%s: entering", __func__);
|
||||
cpu = get_pcpu_id();
|
||||
/* support PMI notification, SOS_VM will register all CPU */
|
||||
if ((cpu == BOOT_CPU_ID) && (profiling_pmi_irq == IRQ_INVALID)) {
|
||||
if ((cpu == BSP_CPU_ID) && (profiling_pmi_irq == IRQ_INVALID)) {
|
||||
pr_info("%s: calling request_irq", __func__);
|
||||
retval = request_irq(PMI_IRQ,
|
||||
profiling_pmi_handler, NULL, IRQF_NONE);
|
||||
|
||||
@@ -937,7 +937,7 @@ static int32_t shell_dump_guest_mem(int32_t argc, char **argv)
|
||||
length = (uint64_t)strtol_deci(argv[3]);
|
||||
|
||||
vm = get_vm_from_vmid(vm_id);
|
||||
vcpu = vcpu_from_vid(vm, BOOT_CPU_ID);
|
||||
vcpu = vcpu_from_vid(vm, BSP_CPU_ID);
|
||||
|
||||
dump.vcpu = vcpu;
|
||||
dump.gva = gva;
|
||||
|
||||
Reference in New Issue
Block a user