]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
KVM: x86/mmu: remove SPTE_PERM_MASK
authorJon Kohler <jon@nutanix.com>
Wed, 8 Apr 2026 15:41:52 +0000 (11:41 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Apr 2026 15:59:54 +0000 (11:59 -0400)
SPTE_PERM_MASK is no longer referenced by anything in the kernel.

Signed-off-by: Jon Kohler <jon@nutanix.com>
Message-ID: <20251223054806.1611168-3-jon@nutanix.com>
Tested-by: David Riley <d.riley@proxmox.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/spte.h

index 91ce29fd6f1b237cf7543823f3e561d356eb005e..28086fa86fe00c567dcab702c24b5f0d6c4d1fe5 100644 (file)
@@ -42,9 +42,6 @@ static_assert(SPTE_TDP_AD_ENABLED == 0);
 #define SPTE_BASE_ADDR_MASK (((1ULL << 52) - 1) & ~(u64)(PAGE_SIZE-1))
 #endif
 
-#define SPTE_PERM_MASK (PT_PRESENT_MASK | PT_WRITABLE_MASK | shadow_user_mask \
-                       | shadow_x_mask | shadow_nx_mask | shadow_me_mask)
-
 #define ACC_EXEC_MASK    1
 #define ACC_WRITE_MASK   PT_WRITABLE_MASK
 #define ACC_USER_MASK    PT_USER_MASK