Home
last modified time | relevance | path

Searched refs:new_spte (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/arch/x86/kvm/mmu/
Dtdp_mmu.c343 u64 old_spte, u64 new_spte, int level,
346 static void handle_changed_spte_acc_track(u64 old_spte, u64 new_spte, int level) in handle_changed_spte_acc_track() argument
352 (!is_shadow_present_pte(new_spte) || !is_accessed_spte(new_spte) || in handle_changed_spte_acc_track()
353 spte_to_pfn(old_spte) != spte_to_pfn(new_spte))) in handle_changed_spte_acc_track()
358 u64 old_spte, u64 new_spte, int level) in handle_changed_spte_dirty_log() argument
366 pfn_changed = spte_to_pfn(old_spte) != spte_to_pfn(new_spte); in handle_changed_spte_dirty_log()
369 is_writable_pte(new_spte)) { in handle_changed_spte_dirty_log()
527 u64 old_spte, u64 new_spte, int level, in __handle_changed_spte() argument
531 bool is_present = is_shadow_present_pte(new_spte); in __handle_changed_spte()
533 bool is_leaf = is_present && is_last_spte(new_spte, level); in __handle_changed_spte()
[all …]
Dtdp_iter.h22 static inline u64 kvm_tdp_mmu_write_spte_atomic(tdp_ptep_t sptep, u64 new_spte) in kvm_tdp_mmu_write_spte_atomic() argument
24 return xchg(rcu_dereference(sptep), new_spte); in kvm_tdp_mmu_write_spte_atomic()
27 static inline void __kvm_tdp_mmu_write_spte(tdp_ptep_t sptep, u64 new_spte) in __kvm_tdp_mmu_write_spte() argument
29 WRITE_ONCE(*rcu_dereference(sptep), new_spte); in __kvm_tdp_mmu_write_spte()
33 u64 new_spte, int level) in kvm_tdp_mmu_write_spte() argument
49 return kvm_tdp_mmu_write_spte_atomic(sptep, new_spte); in kvm_tdp_mmu_write_spte()
51 __kvm_tdp_mmu_write_spte(sptep, new_spte); in kvm_tdp_mmu_write_spte()
Dspte.c141 bool host_writable, u64 *new_spte) in make_spte() argument
237 *new_spte = spte; in make_spte()
317 u64 new_spte; in kvm_mmu_changed_pte_notifier_make_spte() local
319 new_spte = old_spte & ~SPTE_BASE_ADDR_MASK; in kvm_mmu_changed_pte_notifier_make_spte()
320 new_spte |= (u64)new_pfn << PAGE_SHIFT; in kvm_mmu_changed_pte_notifier_make_spte()
322 new_spte &= ~PT_WRITABLE_MASK; in kvm_mmu_changed_pte_notifier_make_spte()
323 new_spte &= ~shadow_host_writable_mask; in kvm_mmu_changed_pte_notifier_make_spte()
324 new_spte &= ~shadow_mmu_writable_mask; in kvm_mmu_changed_pte_notifier_make_spte()
326 new_spte = mark_spte_for_access_track(new_spte); in kvm_mmu_changed_pte_notifier_make_spte()
328 return new_spte; in kvm_mmu_changed_pte_notifier_make_spte()
Dmmutrace.h266 __field(u64, new_spte)
276 __entry->new_spte = *sptep;
284 __entry->old_spte, __entry->new_spte,
393 TP_PROTO(int as_id, gfn_t gfn, int level, u64 old_spte, u64 new_spte),
394 TP_ARGS(as_id, gfn, level, old_spte, new_spte),
399 __field(u64, new_spte)
409 __entry->new_spte = new_spte;
416 __entry->old_spte, __entry->new_spte
Dmmu.c450 static void mmu_spte_set(u64 *sptep, u64 new_spte) in mmu_spte_set() argument
453 __set_spte(sptep, new_spte); in mmu_spte_set()
460 static u64 mmu_spte_update_no_track(u64 *sptep, u64 new_spte) in mmu_spte_update_no_track() argument
464 WARN_ON(!is_shadow_present_pte(new_spte)); in mmu_spte_update_no_track()
465 check_spte_writable_invariants(new_spte); in mmu_spte_update_no_track()
468 mmu_spte_set(sptep, new_spte); in mmu_spte_update_no_track()
473 __update_clear_spte_fast(sptep, new_spte); in mmu_spte_update_no_track()
475 old_spte = __update_clear_spte_slow(sptep, new_spte); in mmu_spte_update_no_track()
477 WARN_ON(spte_to_pfn(old_spte) != spte_to_pfn(new_spte)); in mmu_spte_update_no_track()
491 static bool mmu_spte_update(u64 *sptep, u64 new_spte) in mmu_spte_update() argument
[all …]
Dspte.h448 bool host_writable, u64 *new_spte);