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 <seanjc@google.com> Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com> Message-Id: <20211208015236.1616697-21-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent ccf8d68 commit 635e635

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)