]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: extract avic_ring_doorbell
authorMaxim Levitsky <mlevitsk@redhat.com>
Tue, 8 Feb 2022 11:45:16 +0000 (06:45 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Feb 2022 17:53:02 +0000 (12:53 -0500)
commit2d2f37ba1752bb582dcd70cdf81750b0d25ddb98
tree66baea5ff86dbc70fbf1649b3753320ff9ca2e72
parent4b1b2489af780897c3349f989dd72e8e0e655958
KVM: SVM: extract avic_ring_doorbell

The check on the current CPU adds an extra level of indentation to
svm_deliver_avic_intr and conflates documentation on what happens
if the vCPU exits (of interest to svm_deliver_avic_intr) and migrates
(only of interest to avic_ring_doorbell, which calls get/put_cpu()).
Extract the wrmsr to a separate function and rewrite the
comment in svm_deliver_avic_intr().

Co-developed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/avic.c