Home
last modified time | relevance | path

Searched defs:gfn (Results 1 – 25 of 63) sorted by relevance

123

/Linux-v6.6/drivers/gpu/drm/i915/gvt/
Dpage_track.c35 struct intel_vgpu *vgpu, unsigned long gfn) in intel_vgpu_find_page_track()
50 int intel_vgpu_register_page_track(struct intel_vgpu *vgpu, unsigned long gfn, in intel_vgpu_register_page_track()
83 unsigned long gfn) in intel_vgpu_unregister_page_track()
103 int intel_vgpu_enable_page_track(struct intel_vgpu *vgpu, unsigned long gfn) in intel_vgpu_enable_page_track()
130 int intel_vgpu_disable_page_track(struct intel_vgpu *vgpu, unsigned long gfn) in intel_vgpu_disable_page_track()
Dkvmgt.c92 gfn_t gfn; member
100 gfn_t gfn; member
128 static void gvt_unpin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_unpin_guest_page()
136 static int gvt_pin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_pin_guest_page()
177 static int gvt_dma_map_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_map_page()
200 static void gvt_dma_unmap_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_unmap_page()
228 static struct gvt_dma *__gvt_cache_find_gfn(struct intel_vgpu *vgpu, gfn_t gfn) in __gvt_cache_find_gfn()
246 static int __gvt_cache_add(struct intel_vgpu *vgpu, gfn_t gfn, in __gvt_cache_add()
349 __kvmgt_protect_table_find(struct intel_vgpu *info, gfn_t gfn) in __kvmgt_protect_table_find()
365 static bool kvmgt_gfn_is_write_protected(struct intel_vgpu *info, gfn_t gfn) in kvmgt_gfn_is_write_protected()
[all …]
/Linux-v6.6/arch/x86/kvm/mmu/
Dpage_track.c62 static void update_gfn_write_track(struct kvm_memory_slot *slot, gfn_t gfn, in update_gfn_write_track()
78 gfn_t gfn) in __kvm_write_track_add_gfn()
101 struct kvm_memory_slot *slot, gfn_t gfn) in __kvm_write_track_remove_gfn()
124 const struct kvm_memory_slot *slot, gfn_t gfn) in kvm_gfn_is_write_tracked()
255 int kvm_write_track_add_gfn(struct kvm *kvm, gfn_t gfn) in kvm_write_track_add_gfn()
285 int kvm_write_track_remove_gfn(struct kvm *kvm, gfn_t gfn) in kvm_write_track_remove_gfn()
Dmmu.c277 int kvm_arch_flush_remote_tlbs_range(struct kvm *kvm, gfn_t gfn, u64 nr_pages) in kvm_arch_flush_remote_tlbs_range()
291 gfn_t gfn = kvm_mmu_page_get_gfn(sp, spte_index(sptep)); in kvm_flush_remote_tlbs_sptep() local
296 static void mark_mmio_spte(struct kvm_vcpu *vcpu, u64 *sptep, u64 gfn, in mark_mmio_spte()
759 gfn_t gfn, unsigned int access) in kvm_mmu_page_set_translation()
780 gfn_t gfn = kvm_mmu_page_get_gfn(sp, index); in kvm_mmu_page_set_access() local
789 static struct kvm_lpage_info *lpage_info_slot(gfn_t gfn, in lpage_info_slot()
799 gfn_t gfn, int count) in update_gfn_disallow_lpage_count()
811 void kvm_mmu_gfn_disallow_lpage(const struct kvm_memory_slot *slot, gfn_t gfn) in kvm_mmu_gfn_disallow_lpage()
816 void kvm_mmu_gfn_allow_lpage(const struct kvm_memory_slot *slot, gfn_t gfn) in kvm_mmu_gfn_allow_lpage()
825 gfn_t gfn; in account_shadowed() local
[all …]
Dtdp_mmu.c192 gfn_t gfn, union kvm_mmu_page_role role) in tdp_mmu_init_sp()
333 gfn_t gfn = base_gfn + i * KVM_PAGES_PER_HPAGE(level); in handle_removed_pt() local
419 static void handle_changed_spte(struct kvm *kvm, int as_id, gfn_t gfn, in handle_changed_spte()
604 u64 old_spte, u64 new_spte, gfn_t gfn, int level) in tdp_mmu_set_spte()
1579 gfn_t gfn, unsigned long mask, bool wrprot) in clear_dirty_pt_masked()
1628 gfn_t gfn, unsigned long mask, in kvm_tdp_mmu_clear_dirty_pt_masked()
1709 gfn_t gfn, int min_level) in write_protect_gfn()
1745 struct kvm_memory_slot *slot, gfn_t gfn, in kvm_tdp_mmu_write_protect_gfn()
1769 gfn_t gfn = addr >> PAGE_SHIFT; in kvm_tdp_mmu_get_walk() local
1798 gfn_t gfn = addr >> PAGE_SHIFT; in kvm_tdp_mmu_fast_pf_get_last_sptep() local
Dmmu_internal.h80 gfn_t gfn; member
160 static inline gfn_t gfn_round_for_level(gfn_t gfn, int level) in gfn_round_for_level()
175 static inline void kvm_flush_remote_tlbs_gfn(struct kvm *kvm, gfn_t gfn, int level) in kvm_flush_remote_tlbs_gfn()
231 gfn_t gfn; member
Dpaging_tmpl.h91 gfn_t gfn; member
322 gfn_t gfn; in FNAME() local
538 gfn_t gfn; in FNAME() local
912 gfn_t gfn; in FNAME() local
Dspte.c71 u64 make_mmio_spte(struct kvm_vcpu *vcpu, u64 gfn, unsigned int access) in make_mmio_spte()
139 unsigned int pte_access, gfn_t gfn, kvm_pfn_t pfn, in make_spte()
/Linux-v6.6/arch/powerpc/kvm/
Dbook3s_hv_uvmem.c289 static void kvmppc_mark_gfn(unsigned long gfn, struct kvm *kvm, in kvmppc_mark_gfn()
308 static void kvmppc_gfn_secure_uvmem_pfn(unsigned long gfn, in kvmppc_gfn_secure_uvmem_pfn()
315 static void kvmppc_gfn_secure_mem_pfn(unsigned long gfn, struct kvm *kvm) in kvmppc_gfn_secure_mem_pfn()
321 static void kvmppc_gfn_shared(unsigned long gfn, struct kvm *kvm) in kvmppc_gfn_shared()
327 static void kvmppc_gfn_remove(unsigned long gfn, struct kvm *kvm) in kvmppc_gfn_remove()
333 static bool kvmppc_gfn_is_uvmem_pfn(unsigned long gfn, struct kvm *kvm, in kvmppc_gfn_is_uvmem_pfn()
362 struct kvm *kvm, unsigned long *gfn) in kvmppc_next_nontransitioned_gfn()
394 unsigned long gfn = memslot->base_gfn; in kvmppc_memslot_page_merge() local
617 unsigned long uvmem_pfn, gfn; in kvmppc_uvmem_drop_pages() local
797 unsigned long gfn = memslot->base_gfn; in kvmppc_uv_migrate_mem_slot() local
[all …]
Dbook3s_64_mmu_hv.c514 unsigned long gpa, gfn, hva, pfn, hpa; in kvmppc_book3s_hv_page_fault() local
780 unsigned long *rmapp, unsigned long gfn) in kvmppc_unmap_hpte()
821 unsigned long gfn) in kvm_unmap_rmapp()
858 gfn_t gfn; in kvm_unmap_gfn_range_hv() local
874 unsigned long gfn; in kvmppc_core_flush_memslot_hv() local
899 unsigned long gfn) in kvm_age_rmapp()
955 gfn_t gfn; in kvm_age_gfn_hv() local
970 unsigned long gfn) in kvm_test_age_rmapp()
1118 unsigned long gfn; in kvmppc_harvest_vpa_dirty() local
1159 unsigned long gfn = gpa >> PAGE_SHIFT; in kvmppc_pin_guest_page() local
[all …]
Dbook3s_hv_rm_mmu.c97 unsigned long gfn, unsigned long psize) in kvmppc_update_dirty_map()
113 unsigned long gfn; in kvmppc_set_dirty_from_hpte() local
131 unsigned long gfn; in revmap_for_hpte() local
156 unsigned long gfn; in remove_revmap_chain() local
188 unsigned long i, pa, gpa, gfn, psize; in kvmppc_do_h_enter() local
889 unsigned long gfn, hva, pa, psize = PAGE_SHIFT; in kvmppc_get_hpa() local
Dbook3s_64_mmu_radix.c424 unsigned long gfn = gpa >> PAGE_SHIFT; in kvmppc_unmap_pte() local
824 unsigned long hva, gfn = gpa >> PAGE_SHIFT; in kvmppc_book3s_instantiate_page() local
943 unsigned long gpa, gfn; in kvmppc_book3s_radix_page_fault() local
1027 unsigned long gfn) in kvm_unmap_radix()
1046 unsigned long gfn) in kvm_age_radix()
1074 unsigned long gfn) in kvm_test_age_radix()
1095 unsigned long gfn = memslot->base_gfn + pagenum; in kvm_radix_test_clear_dirty() local
De500_mmu_host.c323 u64 gvaddr, gfn_t gfn, struct kvm_book3e_206_tlb_entry *gtlbe, in kvmppc_e500_shadow_map()
560 u64 gvaddr, gfn_t gfn, struct kvm_book3e_206_tlb_entry *gtlbe, in kvmppc_e500_tlb1_map()
612 gfn_t gfn = gpaddr >> PAGE_SHIFT; in kvmppc_mmu_map() local
/Linux-v6.6/virt/kvm/
Dkvm_main.c369 void kvm_flush_remote_tlbs_range(struct kvm *kvm, gfn_t gfn, u64 nr_pages) in kvm_flush_remote_tlbs_range()
2345 struct kvm_memory_slot *gfn_to_memslot(struct kvm *kvm, gfn_t gfn) in gfn_to_memslot()
2351 struct kvm_memory_slot *kvm_vcpu_gfn_to_memslot(struct kvm_vcpu *vcpu, gfn_t gfn) in kvm_vcpu_gfn_to_memslot()
2384 bool kvm_is_visible_gfn(struct kvm *kvm, gfn_t gfn) in kvm_is_visible_gfn()
2392 bool kvm_vcpu_is_visible_gfn(struct kvm_vcpu *vcpu, gfn_t gfn) in kvm_vcpu_is_visible_gfn()
2400 unsigned long kvm_host_page_size(struct kvm_vcpu *vcpu, gfn_t gfn) in kvm_host_page_size()
2429 static unsigned long __gfn_to_hva_many(const struct kvm_memory_slot *slot, gfn_t gfn, in __gfn_to_hva_many()
2444 static unsigned long gfn_to_hva_many(struct kvm_memory_slot *slot, gfn_t gfn, in gfn_to_hva_many()
2451 gfn_t gfn) in gfn_to_hva_memslot()
2457 unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn) in gfn_to_hva()
[all …]
Ddirty_ring.c89 static inline void kvm_dirty_gfn_set_invalid(struct kvm_dirty_gfn *gfn) in kvm_dirty_gfn_set_invalid()
94 static inline void kvm_dirty_gfn_set_dirtied(struct kvm_dirty_gfn *gfn) in kvm_dirty_gfn_set_dirtied()
99 static inline bool kvm_dirty_gfn_harvested(struct kvm_dirty_gfn *gfn) in kvm_dirty_gfn_harvested()
Dpfncache.c278 gfn_t gfn = gpa_to_gfn(gpa); in __kvm_gpc_refresh() local
/Linux-v6.6/include/xen/
Dxen-ops.h79 xen_pfn_t *gfn, int nr, in xen_xlate_remap_gfn_array()
116 xen_pfn_t *gfn, int nr, in xen_remap_domain_gfn_array()
176 xen_pfn_t gfn, int nr, in xen_remap_domain_gfn_range()
/Linux-v6.6/drivers/xen/
Dxlate_mmu.c84 static void setup_hparams(unsigned long gfn, void *data) in setup_hparams()
145 xen_pfn_t *gfn, int nr, in xen_xlate_remap_gfn_array()
174 static void unmap_gfn(unsigned long gfn, void *data) in unmap_gfn()
197 static void setup_balloon_gfn(unsigned long gfn, void *data) in setup_balloon_gfn()
/Linux-v6.6/arch/x86/include/asm/
Dsev-common.h86 #define GHCB_MSR_PSC_REQ_GFN(gfn, op) \ argument
125 gfn : 40, member
/Linux-v6.6/arch/riscv/kvm/
Dvcpu_exit.c19 gfn_t gfn; in gstage_page_fault() local
/Linux-v6.6/include/linux/
Dkvm_host.h295 kvm_pfn_t gfn; member
1215 #define __kvm_get_guest(kvm, gfn, offset, v) \ argument
1235 #define __kvm_put_guest(kvm, gfn, offset, v) \ argument
1514 gfn_t gfn, u64 nr_pages) in kvm_arch_flush_remote_tlbs_range()
1648 try_get_memslot(struct kvm_memory_slot *slot, gfn_t gfn) in try_get_memslot()
1667 search_memslots(struct kvm_memslots *slots, gfn_t gfn, bool approx) in search_memslots()
1688 ____gfn_to_memslot(struct kvm_memslots *slots, gfn_t gfn, bool approx) in ____gfn_to_memslot()
1712 __gfn_to_memslot(struct kvm_memslots *slots, gfn_t gfn) in __gfn_to_memslot()
1718 __gfn_to_hva_memslot(const struct kvm_memory_slot *slot, gfn_t gfn) in __gfn_to_hva_memslot()
1731 static inline int memslot_id(struct kvm *kvm, gfn_t gfn) in memslot_id()
[all …]
/Linux-v6.6/include/xen/arm/
Dpage.h52 static inline unsigned long gfn_to_pfn(unsigned long gfn) in gfn_to_pfn()
/Linux-v6.6/drivers/xen/xenbus/
Dxenbus_client.c402 unsigned long gfn; in xenbus_setup_ring() local
642 static void xenbus_map_ring_setup_grant_hvm(unsigned long gfn, in xenbus_map_ring_setup_grant_hvm()
859 static void xenbus_unmap_ring_setup_grant_hvm(unsigned long gfn, in xenbus_unmap_ring_setup_grant_hvm()
/Linux-v6.6/arch/powerpc/include/asm/
Dkvm_book3s_uvmem.h81 static inline int kvmppc_send_page_to_uv(struct kvm *kvm, unsigned long gfn) in kvmppc_send_page_to_uv()
/Linux-v6.6/arch/mips/kvm/
Dmmu.c515 gfn_t gfn = gpa >> PAGE_SHIFT; in _kvm_mips_map_page_fast() local
592 gfn_t gfn = gpa >> PAGE_SHIFT; in kvm_mips_map_page() local

123