KVM: SVM: Move AVIC vCPU kicking snippet to helper function
authorSean Christopherson <seanjc@google.com>
Fri, 5 Feb 2021 00:57:42 +0000 (16:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Feb 2021 13:17:06 +0000 (08:17 -0500)
commite6c804a848d604438bd9a083939569a7c9ff2bb5
tree740a175e72297c2d75a1eb2df0afc912ac553fcc
parent2644312052d54e2e7543c7d186899a36ed22f0bf
KVM: SVM: Move AVIC vCPU kicking snippet to helper function

Add a helper function to handle kicking non-running vCPUs when sending
virtual IPIs.  A future patch will change SVM's interception functions
to take @vcpu instead of @svm, at which piont declaring and modifying
'vcpu' in a case statement is confusing, and potentially dangerous.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210205005750.3841462-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/avic.c