]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86/mmu: free up bit 10 of PTEs in preparation for MBEC
authorJon Kohler <jon@nutanix.com>
Wed, 8 Apr 2026 15:41:53 +0000 (11:41 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Apr 2026 15:59:54 +0000 (11:59 -0400)
commit9a67ab74021b4bfb2ad3c9f30af9dbab1127eb99
tree4551ffaffedb40f180f5fa0d4c0bd31542ae02e7
parent2f4d934df00f63e736edf9437022db4bfae6f70f
KVM: x86/mmu: free up bit 10 of PTEs in preparation for MBEC

Update SPTE_MMIO_ALLOWED_MASK to allow EPT user executable (bit 10) to
be treated like EPT RWX bit2:0, as when mode-based execute control is
enabled, bit 10 can act like a "present" bit.  Likewise do not include
it in FROZEN_SPTE.

No functional changes intended, other than the reduction of the maximum
MMIO generation that is stored in page tables.

Cc: Kai Huang <kai.huang@intel.com>
Signed-off-by: Jon Kohler <jon@nutanix.com>
Message-ID: <20251223054806.1611168-4-jon@nutanix.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Tested-by: David Riley <d.riley@proxmox.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/vmx.h
arch/x86/kvm/mmu/spte.h