Home
last modified time | relevance | path

Searched refs:PT_WRITABLE_MASK (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
H A Dspte.c137 spte |= PT_WRITABLE_MASK | SPTE_MMU_WRITEABLE; in make_spte()
153 spte &= ~(PT_WRITABLE_MASK | SPTE_MMU_WRITEABLE); in make_spte()
172 spte = __pa(child_pt) | shadow_present_mask | PT_WRITABLE_MASK | in make_nonleaf_spte()
190 new_spte &= ~PT_WRITABLE_MASK; in kvm_mmu_changed_pte_notifier_make_spte()
230 WARN_ONCE((spte & PT_WRITABLE_MASK) && in mark_spte_for_access_track()
H A Dspte.h27 #define PT64_PERM_MASK (PT_PRESENT_MASK | PT_WRITABLE_MASK | shadow_user_mask \
31 #define ACC_WRITE_MASK PT_WRITABLE_MASK
223 return dirty_mask ? spte & dirty_mask : spte & PT_WRITABLE_MASK; in is_dirty_spte()
H A Dtdp_mmu.c855 new_spte = iter.old_spte & ~PT_WRITABLE_MASK; in wrprot_gfn_range()
910 new_spte = iter.old_spte & ~PT_WRITABLE_MASK; in clear_dirty_gfn_range()
975 new_spte = iter.old_spte & ~PT_WRITABLE_MASK; in clear_dirty_pt_masked()
1137 ~(PT_WRITABLE_MASK | SPTE_MMU_WRITEABLE); in write_protect_gfn()
H A Dpaging_tmpl.h114 BUILD_BUG_ON(PT_WRITABLE_MASK != ACC_WRITE_MASK); in protect_clean_gpte()
119 PT_WRITABLE_MASK; in protect_clean_gpte()
224 access = gpte & (PT_WRITABLE_MASK | PT_USER_MASK | PT_PRESENT_MASK); in gpte_access()
H A Dmmutrace.h355 __entry->spte & PT_WRITABLE_MASK ? "w" : "-",
H A Dmmu.c1118 spte = spte & ~PT_WRITABLE_MASK; in spte_write_protect()
2183 BUILD_BUG_ON(VMX_EPT_WRITABLE_MASK != PT_WRITABLE_MASK); in link_shadow_page()
2577 if (spte & PT_WRITABLE_MASK) in set_spte()
3086 new_spte |= PT_WRITABLE_MASK; in fast_page_fault()
3309 pm_mask |= PT_ACCESSED_MASK | PT_WRITABLE_MASK | PT_USER_MASK; in mmu_alloc_shadow_roots()
5564 * instead of PT_WRITABLE_MASK, that means it does not depend in kvm_mmu_slot_remove_write_access()
5565 * on PT_WRITABLE_MASK anymore. in kvm_mmu_slot_remove_write_access()
/kernel/linux/linux-6.6/arch/x86/kvm/mmu/
H A Dspte.c206 spte |= PT_WRITABLE_MASK | shadow_mmu_writable_mask; in make_spte()
226 spte &= ~(PT_WRITABLE_MASK | shadow_mmu_writable_mask); in make_spte()
241 if ((spte & PT_WRITABLE_MASK) && kvm_slot_dirty_track_enabled(slot)) { in make_spte()
314 spte |= __pa(child_pt) | shadow_present_mask | PT_WRITABLE_MASK | in make_nonleaf_spte()
332 new_spte &= ~PT_WRITABLE_MASK; in kvm_mmu_changed_pte_notifier_make_spte()
H A Dspte.h43 #define SPTE_PERM_MASK (PT_PRESENT_MASK | PT_WRITABLE_MASK | shadow_user_mask \
47 #define ACC_WRITE_MASK PT_WRITABLE_MASK
345 return dirty_mask ? spte & dirty_mask : spte & PT_WRITABLE_MASK; in is_dirty_spte()
409 * Note, not all possible combinations of PT_WRITABLE_MASK,
414 * shadow_host_writable_mask | shadow_mmu_writable_mask | PT_WRITABLE_MASK
443 return pte & PT_WRITABLE_MASK; in is_writable_pte()
H A Dtdp_mmu.c1289 !(iter.old_spte & PT_WRITABLE_MASK)) in wrprot_gfn_range()
1292 new_spte = iter.old_spte & ~PT_WRITABLE_MASK; in wrprot_gfn_range()
1519 u64 dbit = kvm_ad_enabled() ? shadow_dirty_mask : PT_WRITABLE_MASK; in clear_dirty_gfn_range()
1581 u64 dbit = (wrprot || !kvm_ad_enabled()) ? PT_WRITABLE_MASK : in clear_dirty_pt_masked()
1725 ~(PT_WRITABLE_MASK | shadow_mmu_writable_mask); in write_protect_gfn()
H A Dpaging_tmpl.h118 BUILD_BUG_ON(PT_WRITABLE_MASK != ACC_WRITE_MASK); in protect_clean_gpte()
123 PT_WRITABLE_MASK; in protect_clean_gpte()
189 access = gpte & (PT_WRITABLE_MASK | PT_USER_MASK | PT_PRESENT_MASK); in gpte_access()
H A Dmmutrace.h362 __entry->spte & PT_WRITABLE_MASK ? "w" : "-",
H A Dmmu.c1233 spte = spte & ~PT_WRITABLE_MASK; in spte_write_protect()
2429 BUILD_BUG_ON(VMX_EPT_WRITABLE_MASK != PT_WRITABLE_MASK); in __link_shadow_page()
3490 new_spte |= PT_WRITABLE_MASK; in fast_page_fault()
3831 pm_mask |= PT_ACCESSED_MASK | PT_WRITABLE_MASK | PT_USER_MASK; in mmu_alloc_shadow_roots()
/kernel/linux/linux-5.10/arch/x86/kvm/
H A Dmmu.h18 #define PT_WRITABLE_MASK (1ULL << PT_WRITABLE_SHIFT) macro
139 * The rules to use SPTE_MMU_WRITEABLE and PT_WRITABLE_MASK:
144 * check PT_WRITABLE_MASK.
150 return pte & PT_WRITABLE_MASK; in is_writable_pte()
/kernel/linux/linux-5.10/tools/lib/traceevent/plugins/
H A Dplugin_kvm.c443 #define PT_WRITABLE_MASK (1ULL << PT_WRITABLE_SHIFT) macro
449 return pte & PT_WRITABLE_MASK; in process_is_writable_pte()
/kernel/linux/linux-6.6/arch/x86/kvm/
H A Dmmu.h15 #define PT_WRITABLE_MASK (1ULL << PT_WRITABLE_SHIFT) macro
/kernel/linux/linux-5.10/arch/x86/kvm/svm/
H A Dsvm.c873 kvm_mmu_set_mmio_spte_mask(mask, PT_WRITABLE_MASK | PT_USER_MASK); in svm_adjust_mmio_mask()
/kernel/linux/linux-6.6/arch/x86/kvm/svm/
H A Dsvm.c5082 kvm_mmu_set_mmio_spte_mask(mask, mask, PT_WRITABLE_MASK | PT_USER_MASK); in svm_adjust_mmio_mask()

Completed in 41 milliseconds