KVM: nSVM: Merge MSRPM in 64-bit chunks on 64-bit kernels
authorSean Christopherson <seanjc@google.com>
Tue, 10 Jun 2025 22:57:34 +0000 (15:57 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:07:36 +0000 (13:07 -0700)
commit54f1c770611b9f8d7e8f8a50a60384291f143689
tree8bd1259d1997ed0f804ea964d515c03a9bdb7ac9
parent5904ba5172464cdf688567a06346351ab3a61fd3
KVM: nSVM: Merge MSRPM in 64-bit chunks on 64-bit kernels

When merging L0 and L1 MSRPMs as part of nested VMRUN emulation, access
the bitmaps using "unsigned long" chunks, i.e. use 8-byte access for
64-bit kernels instead of arbitrarily working on 4-byte chunks.

Opportunistically rename local variables in nested_svm_merge_msrpm() to
more precisely/accurately reflect their purpose ("offset" in particular is
extremely ambiguous).

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