Lines Matching refs:new_spte
519 static void mmu_spte_set(u64 *sptep, u64 new_spte) in mmu_spte_set() argument
522 __set_spte(sptep, new_spte); in mmu_spte_set()
529 static u64 mmu_spte_update_no_track(u64 *sptep, u64 new_spte) in mmu_spte_update_no_track() argument
533 WARN_ON(!is_shadow_present_pte(new_spte)); in mmu_spte_update_no_track()
536 mmu_spte_set(sptep, new_spte); in mmu_spte_update_no_track()
541 __update_clear_spte_fast(sptep, new_spte); in mmu_spte_update_no_track()
543 old_spte = __update_clear_spte_slow(sptep, new_spte); in mmu_spte_update_no_track()
545 WARN_ON(spte_to_pfn(old_spte) != spte_to_pfn(new_spte)); in mmu_spte_update_no_track()
561 static bool mmu_spte_update(u64 *sptep, u64 new_spte) in mmu_spte_update() argument
564 u64 old_spte = mmu_spte_update_no_track(sptep, new_spte); in mmu_spte_update()
575 !is_writable_pte(new_spte)) in mmu_spte_update()
583 if (is_accessed_spte(old_spte) && !is_accessed_spte(new_spte)) { in mmu_spte_update()
588 if (is_dirty_spte(old_spte) && !is_dirty_spte(new_spte)) { in mmu_spte_update()
654 u64 new_spte = spte; in restore_acc_track_spte() local
661 new_spte &= ~shadow_acc_track_mask; in restore_acc_track_spte()
662 new_spte &= ~(SHADOW_ACC_TRACK_SAVED_BITS_MASK << in restore_acc_track_spte()
664 new_spte |= saved_bits; in restore_acc_track_spte()
666 return new_spte; in restore_acc_track_spte()
1468 u64 new_spte; in kvm_set_pte_rmapp() local
1485 new_spte = kvm_mmu_changed_pte_notifier_make_spte( in kvm_set_pte_rmapp()
1489 mmu_spte_set(sptep, new_spte); in kvm_set_pte_rmapp()
3133 u64 *sptep, u64 old_spte, u64 new_spte) in fast_pf_fix_direct_spte() argument
3151 if (cmpxchg64(sptep, old_spte, new_spte) != old_spte) in fast_pf_fix_direct_spte()
3154 if (is_writable_pte(new_spte) && !is_writable_pte(old_spte)) { in fast_pf_fix_direct_spte()
3221 u64 new_spte; in fast_page_fault() local
3250 new_spte = spte; in fast_page_fault()
3253 new_spte = restore_acc_track_spte(new_spte); in fast_page_fault()
3262 new_spte |= PT_WRITABLE_MASK; in fast_page_fault()
3280 if (new_spte == spte || in fast_page_fault()
3281 !is_access_allowed(error_code, new_spte)) in fast_page_fault()
3289 if (fast_pf_fix_direct_spte(vcpu, sp, sptep, spte, new_spte)) { in fast_page_fault()