Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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()
Dmpt.h163 struct intel_vgpu *vgpu, unsigned long gfn) in intel_gvt_hypervisor_enable_page_track()
177 struct intel_vgpu *vgpu, unsigned long gfn) in intel_gvt_hypervisor_disable_page_track()
223 struct intel_vgpu *vgpu, unsigned long gfn) in intel_gvt_hypervisor_gfn_to_mfn()
239 struct intel_vgpu *vgpu, unsigned long gfn, unsigned long size, in intel_gvt_hypervisor_dma_map_guest_page()
284 struct intel_vgpu *vgpu, unsigned long gfn, in intel_gvt_hypervisor_map_gfn_to_mfn()
387 struct intel_vgpu *vgpu, unsigned long gfn) in intel_gvt_hypervisor_is_valid_gfn()
Dkvmgt.c87 gfn_t gfn; member
105 gfn_t gfn; member
151 static void gvt_unpin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_unpin_guest_page()
171 static int gvt_pin_guest_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_pin_guest_page()
221 static int gvt_dma_map_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_map_page()
244 static void gvt_dma_unmap_page(struct intel_vgpu *vgpu, unsigned long gfn, in gvt_dma_unmap_page()
272 static struct gvt_dma *__gvt_cache_find_gfn(struct intel_vgpu *vgpu, gfn_t gfn) in __gvt_cache_find_gfn()
290 static int __gvt_cache_add(struct intel_vgpu *vgpu, gfn_t gfn, in __gvt_cache_add()
399 __kvmgt_protect_table_find(struct kvmgt_guest_info *info, gfn_t gfn) in __kvmgt_protect_table_find()
414 gfn_t gfn) in kvmgt_gfn_is_write_protected()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv_uvmem.c287 static void kvmppc_mark_gfn(unsigned long gfn, struct kvm *kvm, in kvmppc_mark_gfn()
306 static void kvmppc_gfn_secure_uvmem_pfn(unsigned long gfn, in kvmppc_gfn_secure_uvmem_pfn()
313 static void kvmppc_gfn_secure_mem_pfn(unsigned long gfn, struct kvm *kvm) in kvmppc_gfn_secure_mem_pfn()
319 static void kvmppc_gfn_shared(unsigned long gfn, struct kvm *kvm) in kvmppc_gfn_shared()
325 static void kvmppc_gfn_remove(unsigned long gfn, struct kvm *kvm) in kvmppc_gfn_remove()
331 static bool kvmppc_gfn_is_uvmem_pfn(unsigned long gfn, struct kvm *kvm, in kvmppc_gfn_is_uvmem_pfn()
360 struct kvm *kvm, unsigned long *gfn) in kvmppc_next_nontransitioned_gfn()
392 unsigned long gfn = memslot->base_gfn; in kvmppc_memslot_page_merge() local
610 unsigned long uvmem_pfn, gfn; in kvmppc_uvmem_drop_pages() local
791 unsigned long gfn = memslot->base_gfn; in kvmppc_uv_migrate_mem_slot() local
[all …]
Dbook3s_64_mmu_hv.c491 unsigned long gpa, gfn, hva, pfn, hpa; in kvmppc_book3s_hv_page_fault() local
770 gfn_t gfn, gfn_end; in kvm_handle_hva_range() local
802 unsigned long *rmapp, unsigned long gfn) in kvmppc_unmap_hpte()
843 unsigned long gfn) in kvm_unmap_rmapp()
891 unsigned long gfn; in kvmppc_core_flush_memslot_hv() local
916 unsigned long gfn) in kvm_age_rmapp()
979 unsigned long gfn) in kvm_test_age_rmapp()
1121 unsigned long gfn; in kvmppc_harvest_vpa_dirty() local
1162 unsigned long gfn = gpa >> PAGE_SHIFT; in kvmppc_pin_guest_page() local
1194 unsigned long gfn; in kvmppc_unpin_guest_page() local
[all …]
Dbook3s_hv_rm_mmu.c110 unsigned long gfn, unsigned long psize) in kvmppc_update_dirty_map()
126 unsigned long gfn; in kvmppc_set_dirty_from_hpte() local
144 unsigned long gfn; in revmap_for_hpte() local
169 unsigned long gfn; in remove_revmap_chain() local
201 unsigned long i, pa, gpa, gfn, psize; in kvmppc_do_h_enter() local
887 unsigned long gfn, hva, pa, psize = PAGE_SHIFT; in kvmppc_get_hpa() local
Dbook3s_64_mmu_radix.c401 unsigned long gfn = gpa >> PAGE_SHIFT; in kvmppc_unmap_pte() local
801 unsigned long hva, gfn = gpa >> PAGE_SHIFT; in kvmppc_book3s_instantiate_page() local
920 unsigned long gpa, gfn; in kvmppc_book3s_radix_page_fault() local
999 unsigned long gfn) in kvm_unmap_radix()
1019 unsigned long gfn) in kvm_age_radix()
1047 unsigned long gfn) in kvm_test_age_radix()
1067 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
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
Dpage_track.c59 static void update_gfn_track(struct kvm_memory_slot *slot, gfn_t gfn, in update_gfn_track()
87 struct kvm_memory_slot *slot, gfn_t gfn, in kvm_slot_page_track_add_page()
122 struct kvm_memory_slot *slot, gfn_t gfn, in kvm_slot_page_track_remove_page()
141 bool kvm_page_track_is_active(struct kvm_vcpu *vcpu, gfn_t gfn, in kvm_page_track_is_active()
Dtdp_mmu.c139 static struct kvm_mmu_page *alloc_tdp_mmu_page(struct kvm_vcpu *vcpu, gfn_t gfn, in alloc_tdp_mmu_page()
215 static void handle_changed_spte_dirty_log(struct kvm *kvm, int as_id, gfn_t gfn, in handle_changed_spte_dirty_log()
245 static void __handle_changed_spte(struct kvm *kvm, int as_id, gfn_t gfn, in __handle_changed_spte()
343 static void handle_changed_spte(struct kvm *kvm, int as_id, gfn_t gfn, in handle_changed_spte()
587 gfn_t gfn = gpa >> PAGE_SHIFT; in kvm_tdp_mmu_map() local
759 struct kvm_mmu_page *root, gfn_t gfn, gfn_t unused, in test_age_gfn()
784 struct kvm_mmu_page *root, gfn_t gfn, gfn_t unused, in set_tdp_spte()
959 gfn_t gfn, unsigned long mask, bool wrprot) in clear_dirty_pt_masked()
1000 gfn_t gfn, unsigned long mask, in kvm_tdp_mmu_clear_dirty_pt_masked()
1129 gfn_t gfn) in write_protect_gfn()
[all …]
Dmmu.c217 static void mark_mmio_spte(struct kvm_vcpu *vcpu, u64 *sptep, u64 gfn, in mark_mmio_spte()
241 static bool set_mmio_spte(struct kvm_vcpu *vcpu, u64 *sptep, gfn_t gfn, in set_mmio_spte()
705 static void kvm_mmu_page_set_gfn(struct kvm_mmu_page *sp, int index, gfn_t gfn) in kvm_mmu_page_set_gfn()
723 static struct kvm_lpage_info *lpage_info_slot(gfn_t gfn, in lpage_info_slot()
734 gfn_t gfn, int count) in update_gfn_disallow_lpage_count()
746 void kvm_mmu_gfn_disallow_lpage(struct kvm_memory_slot *slot, gfn_t gfn) in kvm_mmu_gfn_disallow_lpage()
751 void kvm_mmu_gfn_allow_lpage(struct kvm_memory_slot *slot, gfn_t gfn) in kvm_mmu_gfn_allow_lpage()
760 gfn_t gfn; in account_shadowed() local
790 gfn_t gfn; in unaccount_shadowed() local
811 gfn_to_memslot_dirty_bitmap(struct kvm_vcpu *vcpu, gfn_t gfn, in gfn_to_memslot_dirty_bitmap()
[all …]
Dspte.c48 u64 make_mmio_spte(struct kvm_vcpu *vcpu, u64 gfn, unsigned int access) in make_mmio_spte()
85 gfn_t gfn, kvm_pfn_t pfn, u64 old_spte, bool speculative, in make_spte()
Dpaging_tmpl.h96 gfn_t gfn; member
328 gfn_t gfn; in FNAME() local
532 gfn_t gfn; in FNAME() local
762 gfn_t gfn = walker->gfn ^ walker->table_gfn[level - 1]; in FNAME() local
1035 gfn_t gfn; in FNAME() local
Dmmu_audit.c96 gfn_t gfn; in audit_mappings() local
133 gfn_t gfn; in inspect_spte_has_rmap() local
Dtdp_iter.c18 static gfn_t round_gfn_for_level(gfn_t gfn, int level) in round_gfn_for_level()
Dtdp_iter.h30 gfn_t gfn; member
/kernel/linux/linux-5.10/virt/kvm/
Dkvm_main.c1709 struct kvm_memory_slot *gfn_to_memslot(struct kvm *kvm, gfn_t gfn) in gfn_to_memslot()
1715 struct kvm_memory_slot *kvm_vcpu_gfn_to_memslot(struct kvm_vcpu *vcpu, gfn_t gfn) in kvm_vcpu_gfn_to_memslot()
1720 bool kvm_is_visible_gfn(struct kvm *kvm, gfn_t gfn) in kvm_is_visible_gfn()
1728 bool kvm_vcpu_is_visible_gfn(struct kvm_vcpu *vcpu, gfn_t gfn) in kvm_vcpu_is_visible_gfn()
1736 unsigned long kvm_host_page_size(struct kvm_vcpu *vcpu, gfn_t gfn) in kvm_host_page_size()
1765 static unsigned long __gfn_to_hva_many(struct kvm_memory_slot *slot, gfn_t gfn, in __gfn_to_hva_many()
1780 static unsigned long gfn_to_hva_many(struct kvm_memory_slot *slot, gfn_t gfn, in gfn_to_hva_many()
1787 gfn_t gfn) in gfn_to_hva_memslot()
1793 unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn) in gfn_to_hva()
1799 unsigned long kvm_vcpu_gfn_to_hva(struct kvm_vcpu *vcpu, gfn_t gfn) in kvm_vcpu_gfn_to_hva()
[all …]
/kernel/linux/linux-5.10/include/xen/
Dxen-ops.h97 xen_pfn_t *gfn, int nr, in xen_xlate_remap_gfn_array()
134 xen_pfn_t *gfn, int nr, in xen_remap_domain_gfn_array()
196 xen_pfn_t gfn, int nr, in xen_remap_domain_gfn_range()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/mips/kvm/
Dmmu.c445 int (*handler)(struct kvm *kvm, gfn_t gfn, in handle_hva_to_gpa()
460 gfn_t gfn, gfn_end; in handle_hva_to_gpa() local
482 static int kvm_unmap_hva_handler(struct kvm *kvm, gfn_t gfn, gfn_t gfn_end, in kvm_unmap_hva_handler()
498 static int kvm_set_spte_handler(struct kvm *kvm, gfn_t gfn, gfn_t gfn_end, in kvm_set_spte_handler()
540 static int kvm_age_hva_handler(struct kvm *kvm, gfn_t gfn, gfn_t gfn_end, in kvm_age_hva_handler()
546 static int kvm_test_age_hva_handler(struct kvm *kvm, gfn_t gfn, gfn_t gfn_end, in kvm_test_age_hva_handler()
590 gfn_t gfn = gpa >> PAGE_SHIFT; in _kvm_mips_map_page_fast() local
667 gfn_t gfn = gpa >> PAGE_SHIFT; in kvm_mips_map_page() local
/kernel/linux/linux-5.10/include/linux/
Dkvm_types.h58 gfn_t gfn; member
Dkvm_host.h241 kvm_pfn_t gfn; member
780 #define __kvm_get_guest(kvm, gfn, offset, v) \ argument
800 #define __kvm_put_guest(kvm, gfn, offset, v) \ argument
1095 search_memslots(struct kvm_memslots *slots, gfn_t gfn) in search_memslots()
1127 __gfn_to_memslot(struct kvm_memslots *slots, gfn_t gfn) in __gfn_to_memslot()
1133 __gfn_to_hva_memslot(struct kvm_memory_slot *slot, gfn_t gfn) in __gfn_to_hva_memslot()
1146 static inline int memslot_id(struct kvm *kvm, gfn_t gfn) in memslot_id()
1159 static inline gpa_t gfn_to_gpa(gfn_t gfn) in gfn_to_gpa()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/xen/arm/
Dpage.h52 static inline unsigned long gfn_to_pfn(unsigned long gfn) in gfn_to_pfn()
/kernel/linux/linux-5.10/drivers/xen/xenbus/
Dxenbus_client.c392 unsigned long gfn; in xenbus_grant_ring() local
599 static void xenbus_map_ring_setup_grant_hvm(unsigned long gfn, in xenbus_map_ring_setup_grant_hvm()
817 static void xenbus_unmap_ring_setup_grant_hvm(unsigned long gfn, in xenbus_unmap_ring_setup_grant_hvm()

123