]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: VMX: Don't do full kick when handling posted interrupt wakeup
authorSean Christopherson <seanjc@google.com>
Wed, 8 Dec 2021 01:52:30 +0000 (01:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Dec 2021 18:00:55 +0000 (13:00 -0500)
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>
arch/x86/kvm/vmx/posted_intr.c

index 023a6b9b0fa47660d4143e463286e5d700ee5241..f4169c009400602a5a644dcef3387dd98e491f90 100644 (file)
@@ -209,7 +209,7 @@ void pi_wakeup_handler(void)
                            pi_wakeup_list) {
 
                if (pi_test_on(&vmx->pi_desc))
-                       kvm_vcpu_kick(&vmx->vcpu);
+                       kvm_vcpu_wake_up(&vmx->vcpu);
        }
        spin_unlock(&per_cpu(wakeup_vcpus_on_cpu_lock, cpu));
 }