mbox series

[0/3] KVM: SVM: Clean up LBRv MSRs handling

Message ID 20230607203519.1570167-1-seanjc@google.com (mailing list archive)
Headers show
Series KVM: SVM: Clean up LBRv MSRs handling | expand

Message

Sean Christopherson June 7, 2023, 8:35 p.m. UTC
Eliminate dead KVM_BUG() code in SVM's LBR MSRs virtualization by
refactoring the code to completely remove any need for a KVM_BUG(), and
clean up a few others pieces of related code.

Sean Christopherson (3):
  KVM: SVM: Fix dead KVM_BUG() code in LBR MSR virtualization
  KVM: SVM: Clean up handling of LBR virtualization enabled
  KVM: SVM: Use svm_get_lbr_vmcb() helper to handle writes to DEBUGCTL

 arch/x86/kvm/svm/svm.c | 63 ++++++++++++++----------------------------
 1 file changed, 20 insertions(+), 43 deletions(-)


base-commit: 24ff4c08e5bbdd7399d45f940f10fed030dfadda

Comments

Sean Christopherson Aug. 3, 2023, 12:05 a.m. UTC | #1
On Wed, 07 Jun 2023 13:35:16 -0700, Sean Christopherson wrote:
> Eliminate dead KVM_BUG() code in SVM's LBR MSRs virtualization by
> refactoring the code to completely remove any need for a KVM_BUG(), and
> clean up a few others pieces of related code.
> 
> Sean Christopherson (3):
>   KVM: SVM: Fix dead KVM_BUG() code in LBR MSR virtualization
>   KVM: SVM: Clean up handling of LBR virtualization enabled
>   KVM: SVM: Use svm_get_lbr_vmcb() helper to handle writes to DEBUGCTL
> 
> [...]

Applied to kvm-x86 svm, thanks!

[1/3] KVM: SVM: Fix dead KVM_BUG() code in LBR MSR virtualization
      https://github.com/kvm-x86/linux/commit/d518f8cc10af
[2/3] KVM: SVM: Clean up handling of LBR virtualization enabled
      https://github.com/kvm-x86/linux/commit/41dfb5f13ed9
[3/3] KVM: SVM: Use svm_get_lbr_vmcb() helper to handle writes to DEBUGCTL
      https://github.com/kvm-x86/linux/commit/a85cd52d7205

--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes