Re: [PATCH] KVM: SVM: Add a helper to get LBR field pointer to dedup MSR accesses

From: Yosry Ahmed

Date: Tue Mar 10 2026 - 21:46:12 EST


On Tue, Mar 10, 2026 at 3:04 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
>
> Add a helper to get a pointer to the corresponding VMCB field given an LBR
> MSR index, and use it to dedup the handling in svm_{g,s}et_msr().
>
> No functional change intended.
>
> Suggested-by: Yosry Ahmed <yosry@xxxxxxxxxx>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>

LGTM:

Reviewed-by: Yosry Ahmed <yosry@xxxxxxxxxx>