Revert "Refine the BSP/AP boot flowchart to match BIOS boot flow"

This reverts commit ff9d667b49.
This commit is contained in:
Zhao Yakui
2019-06-26 13:37:09 +08:00
parent 8c357a849f
commit 58dcb0af1b
2 changed files with 1 additions and 20 deletions

View File

@@ -1201,7 +1201,6 @@ vlapic_process_init_sipi(struct acrn_vcpu* target_vcpu, uint32_t mode,
target_vcpu->arch.nr_sipi = 1U;
}
} else if (mode == APIC_DELMODE_STARTUP) {
/* Ignore SIPIs in any state other than wait-for-SIPI */
if ((target_vcpu->state == VCPU_INIT) &&
(target_vcpu->arch.nr_sipi != 0U)) {
@@ -1260,11 +1259,6 @@ static void vlapic_icrlo_write_handler(struct acrn_vlapic *vlapic)
} else if (((shorthand == APIC_DEST_SELF) || (shorthand == APIC_DEST_ALLISELF))
&& ((mode == APIC_DELMODE_NMI) || (mode == APIC_DELMODE_INIT)
|| (mode == APIC_DELMODE_STARTUP))) {
#if 1
/* Start all secondary cores */
start_pcpus(AP_MASK);
#endif
dev_dbg(ACRN_DBG_LAPIC, "Invalid ICR value");
} else {
@@ -1274,10 +1268,6 @@ static void vlapic_icrlo_write_handler(struct acrn_vlapic *vlapic)
switch (shorthand) {
case APIC_DEST_DESTFLD:
#if 1
/* Start all secondary cores */
start_pcpus(AP_MASK);
#endif
vlapic_calc_dest(vlapic->vm, &dmask, is_broadcast, dest, phys, false);
break;
case APIC_DEST_SELF: