]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86/mmu: shuffle high bits of SPTEs in preparation for MBEC
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Apr 2026 15:41:54 +0000 (11:41 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Apr 2026 15:59:54 +0000 (11:59 -0400)
commitbe4e45f360a2963ff4a1e17312ccbb273fa79bab
treed07b766ece7db482d27f41c29ad073b3ebeb091d
parent9a67ab74021b4bfb2ad3c9f30af9dbab1127eb99
KVM: x86/mmu: shuffle high bits of SPTEs in preparation for MBEC

Access tracking will need to save bit 10 when MBEC is enabled.
Right now it is simply shifting the R and X bits into bits 54 and 56,
but bit 10 would not fit with the same scheme.  Reorganize the
high bits so that access tracking will use bits 52, 54 and 62.
As a side effect, the free bits are compacted slightly, with
56-59 still unused.

Tested-by: David Riley <d.riley@proxmox.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/spte.h