diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-01-15 09:34:25 -0800 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-01-16 07:48:00 -0800 |
| commit | c68feb605cc47431b3d86e6c2fe4f8342ebc87eb (patch) | |
| tree | 0c2c845f73299fa90eb40854bbab359ac43c958f /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 26304e0e694f4cacc30bcf757663f26533351fbd (diff) | |
KVM: VMX: Add a wrapper around ROL16() to get a vmcs12 from a field encoding
Add a wrapper macro, ENC_TO_VMCS12_IDX(), to get a vmcs12 index given a
field encoding in anticipation of adding a macro to get from a vmcs12 index
back to the field encoding. And because open coding ROL16(n, 6) everywhere
is gross.
No functional change intended.
Suggested-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://patch.msgid.link/20260115173427.716021-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
