Skip to content

Commit 635e635

Browse files
sean-jcbonzini
authored andcommitted
KVM: VMX: Don't do full kick when handling posted interrupt wakeup
When waking vCPUs in the posted interrupt wakeup handling, do exactly that and no more. There is no need to kick the vCPU as the wakeup handler just needs to get the vCPU task running, and if it's in the guest then it's definitely running. Signed-off-by: Sean Christopherson <[email protected]> Reviewed-by: Maxim Levitsky <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent ccf8d68 commit 635e635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/vmx/posted_intr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ void pi_wakeup_handler(void)
209209
pi_wakeup_list) {
210210

211211
if (pi_test_on(&vmx->pi_desc))
212-
kvm_vcpu_kick(&vmx->vcpu);
212+
kvm_vcpu_wake_up(&vmx->vcpu);
213213
}
214214
raw_spin_unlock(&per_cpu(wakeup_vcpus_on_cpu_lock, cpu));
215215
}

0 commit comments

Comments
 (0)