mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
apicv: cancel event injection if vcpu is scheduled out
And re-inject the event after vcpu is scheduled in. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
@@ -147,6 +147,9 @@ static void context_switch_out(struct vcpu *vcpu)
|
||||
if (vcpu == NULL)
|
||||
return;
|
||||
|
||||
/* cancel event(int, gp, nmi and exception) injection */
|
||||
cancel_event_injection(vcpu);
|
||||
|
||||
atomic_store_rel_32(&vcpu->running, 0);
|
||||
/* do prev vcpu context switch out */
|
||||
/* For now, we don't need to invalid ept.
|
||||
|
||||
Reference in New Issue
Block a user