]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9828ef65e14785678aba3e87fcabcc1e7de8f528
tree740a175e72297c2d75a1eb2df0afc912ac553fcc
parent472da95903f3926d93921f5bfab71f2ee6b71c4c
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