Lines Matching refs:sptes
143 u64 *sptes[PTE_LIST_EXT];
649 * reads to sptes. If it does, kvm_mmu_commit_zap_page() can see us
848 desc->sptes[0] = (u64 *)rmap_head->val;
849 desc->sptes[1] = spte;
855 while (desc->sptes[PTE_LIST_EXT-1]) {
865 for (i = 0; desc->sptes[i]; ++i)
867 desc->sptes[i] = spte;
879 for (j = PTE_LIST_EXT - 1; !desc->sptes[j] && j > i; --j)
881 desc->sptes[i] = desc->sptes[j];
882 desc->sptes[j] = NULL;
916 for (i = 0; i < PTE_LIST_EXT && desc->sptes[i]; ++i) {
917 if (desc->sptes[i] == spte) {
989 * Used by the following functions to iterate through the sptes linked by a
1000 * removing/dropping sptes from the rmap link because in such cases the
1021 sptep = iter->desc->sptes[iter->pos];
1039 sptep = iter->desc->sptes[iter->pos];
1048 /* desc->sptes[0] cannot be NULL */
1049 sptep = iter->desc->sptes[iter->pos];
3488 * Return the level of the lowest level SPTE added to sptes.
3491 static int get_walk(struct kvm_vcpu *vcpu, u64 addr, u64 *sptes, int *root_level)
3506 sptes[leaf - 1] = spte;
3520 u64 sptes[PT64_ROOT_MAX_LEVEL];
3531 leaf = kvm_tdp_mmu_get_walk(vcpu, addr, sptes, &root);
3533 leaf = get_walk(vcpu, addr, sptes, &root);
3543 if (!is_shadow_present_pte(sptes[level - 1]))
3550 reserved |= __is_bad_mt_xwr(rsvd_check, sptes[level - 1]) ||
3551 __is_rsvd_bits_set(rsvd_check, sptes[level - 1],
3560 sptes[level - 1], level);
3563 *sptep = sptes[leaf - 1];
4892 * as the current vcpu paging mode since we update the sptes only