diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-03-10 15:04:14 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-03-13 13:05:54 -0700 |
| commit | 0b4a043a54144aef3e5a2597c29c6adb5e6c47dc (patch) | |
| tree | 1efed2c8eb7e7e4574d9ee3ff515c42f9eada2b2 /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | 3900e56eb184abcc8a16ab52af24ea255589acc2 (diff) | |
KVM: SVM: Add a helper to get LBR field pointer to dedup MSR accesses
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@kernel.org>
Reviewed-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260310220414.2569208-1-seanjc@google.com
[sean: use KVM_BUG_ON() instead of BUILD_BUG(), clang ain't smart enough]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
