]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: nSVM: Use PAGE_MASK to drop lower bits of bitmap GPAs from vmcb12
authorYosry Ahmed <yosry@kernel.org>
Tue, 3 Mar 2026 00:34:16 +0000 (00:34 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:09:06 +0000 (16:09 -0800)
commita2b858051cf03d4f0abca014cddd424675be5316
tree78442535889c3983ec5edc078eece6a03d32984e
parentb709087e9e544259d1d075ced91cc4ab769a8ae2
KVM: nSVM: Use PAGE_MASK to drop lower bits of bitmap GPAs from vmcb12

Use PAGE_MASK to drop the lower bits from IOPM_BASE_PA and MSRPM_BASE_PA
while copying them instead of dropping the bits afterward with a
hardcoded mask.

No functional change intended.

Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260303003421.2185681-23-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/nested.c