]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Use common kvm_apic_write_nodecode() for AVIC write traps
authorSean Christopherson <seanjc@google.com>
Fri, 4 Feb 2022 21:41:58 +0000 (21:41 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Mar 2022 13:50:46 +0000 (08:50 -0500)
commite756bd7fd01dce69511fc494e8b2c040d050147d
tree8605ffcb80ce15b3695b7739cbc7e6b91224ee5f
parentb8a4fd601d3f2025b0c4d9652d890ffd046cd5dd
KVM: SVM: Use common kvm_apic_write_nodecode() for AVIC write traps

Use the common kvm_apic_write_nodecode() to handle AVIC/APIC-write traps
instead of open coding the same exact code.  This will allow making the
low level lapic helpers inaccessible outside of lapic.c code.

Opportunistically clean up the params to eliminate a bunch of svm=>vcpu
reflection.

No functional change intended.

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