Lines Matching +full:valid +full:- +full:mask
1 // SPDX-License-Identifier: GPL-2.0
12 * TDP MMU SPTEs are RCU protected to allow paging structures (non-leaf SPTEs)
35 * SPTEs must be modified atomically if they are shadow-present, leaf
40 * Note, non-leaf SPTEs do have Accessed bits and those bits are
42 * non-leaf SPTEs, i.e. KVM doesn't care if it clobbers the bit. This
43 * logic needs to be reassessed if KVM were to use non-leaf Accessed
64 u64 mask, int level) in tdp_mmu_clear_spte_bits() argument
70 return (u64)atomic64_fetch_and(~mask, sptep_atomic); in tdp_mmu_clear_spte_bits()
73 __kvm_tdp_mmu_write_spte(sptep, old_spte & ~mask); in tdp_mmu_clear_spte_bits()
78 * A TDP iterator performs a pre-order walk over a TDP paging structure.
96 /* The lowest GFN (mask bits excluded) mapped by the current SPTE */
98 /* Mask applied to convert the GFN to the mapping GPA */
111 * Whether the iterator has a valid state. This will be false if the
114 bool valid; member
129 iter.valid && iter.gfn < end; \
134 iter.valid && iter.gfn < tdp_mmu_max_gfn_exclusive(); \