OSDN Git Service

KVM: SVM: Use svm_get_lbr_vmcb() helper to handle writes to DEBUGCTL
authorSean Christopherson <seanjc@google.com>
Wed, 7 Jun 2023 20:35:19 +0000 (13:35 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 2 Aug 2023 23:41:55 +0000 (16:41 -0700)
commita85cd52d720588b0060a0ebac5c7f497ad6bcd86
treed322ba523e0039e18e8974dfbf134d79b52b7179
parent41dfb5f13ed9101b217e7085e5b5fb07d705e27f
KVM: SVM: Use svm_get_lbr_vmcb() helper to handle writes to DEBUGCTL

Use the recently introduced svm_get_lbr_vmcb() instead an open coded
equivalent to retrieve the target VMCB when emulating writes to
MSR_IA32_DEBUGCTLMSR.

No functional change intended.

Link: https://lore.kernel.org/r/20230607203519.1570167-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c