• Rick Edgecombe's avatar
    KVM: x86/tdp_mmu: Rename REMOVED_SPTE to FROZEN_SPTE · 964cea81
    Rick Edgecombe authored
    Rename REMOVED_SPTE to FROZEN_SPTE so that it can be used for other
    multi-part operations.
    
    REMOVED_SPTE is used as a non-present intermediate value for multi-part
    operations that can happen when a thread doesn't have an MMU write lock.
    Today these operations are when removing PTEs.
    
    However, future changes will want to use the same concept for setting a
    PTE. In that case the REMOVED_SPTE name does not quite fit. So rename it
    to FROZEN_SPTE so it can be used for both types of operations.
    
    Also rename the relevant helpers and comments that refer to "removed"
    within the context of the SPTE value. Take care to not update naming
    referring the "remove" operations, which are still distinct.
    Suggested-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: default avatarRick Edgecombe <rick.p.edgecombe@intel.com>
    Message-ID: <20240619223614.290657-2-rick.p.edgecombe@intel.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    964cea81
spte.h 18.8 KB