mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
hv: schedule: schedule to idel after SOS resume form S3
After "commit f0e1c5e
init vcpu host stack when reset vcpu", SOS resume form S3
wants to schedule to vcpu_thread not the point where SOS enter S3. So we should
schedule to idel first then reschedule to execute vcpu_thread.
Tracked-On: #3387
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -202,8 +202,8 @@ static void vpic_notify_intr(struct acrn_vpic *vpic)
|
||||
*/
|
||||
i8259->intr_raised = true;
|
||||
if (vpic->vm->wire_mode == VPIC_WIRE_INTR) {
|
||||
struct acrn_vcpu *vcpu = vcpu_from_vid(vpic->vm, 0U);
|
||||
vcpu_inject_extint(vcpu);
|
||||
struct acrn_vcpu *bsp = vcpu_from_vid(vpic->vm, BOOT_CPU_ID);
|
||||
vcpu_inject_extint(bsp);
|
||||
} else {
|
||||
/*
|
||||
* The input parameters here guarantee the return value of vlapic_set_local_intr is 0, means
|
||||
|
Reference in New Issue
Block a user