Home
last modified time | relevance | path

Searched refs:kvm_memslots (Results 1 – 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Dkvm_host.h437 struct kvm_memslots { struct
450 struct kvm_memslots __rcu *memslots[KVM_ADDRESS_SPACE_NUM]; argument
630 static inline struct kvm_memslots *__kvm_memslots(struct kvm *kvm, int as_id) in __kvm_memslots()
638 static inline struct kvm_memslots *kvm_memslots(struct kvm *kvm) in kvm_memslots() function
643 static inline struct kvm_memslots *kvm_vcpu_memslots(struct kvm_vcpu *vcpu) in kvm_vcpu_memslots()
651 struct kvm_memory_slot *id_to_memslot(struct kvm_memslots *slots, int id) in id_to_memslot()
804 struct kvm_memslots *kvm_vcpu_memslots(struct kvm_vcpu *vcpu);
1067 search_memslots(struct kvm_memslots *slots, gfn_t gfn) in search_memslots()
1099 __gfn_to_memslot(struct kvm_memslots *slots, gfn_t gfn) in __gfn_to_memslot()
Dkvm_types.h17 struct kvm_memslots;
/kernel/linux/linux-5.10/virt/kvm/
Dkvm_main.c623 static struct kvm_memslots *kvm_alloc_memslots(void) in kvm_alloc_memslots()
626 struct kvm_memslots *slots; in kvm_alloc_memslots()
628 slots = kvzalloc(sizeof(struct kvm_memslots), GFP_KERNEL_ACCOUNT); in kvm_alloc_memslots()
657 static void kvm_free_memslots(struct kvm *kvm, struct kvm_memslots *slots) in kvm_free_memslots()
777 struct kvm_memslots *slots = kvm_alloc_memslots(); in kvm_create_vm()
956 static inline void kvm_memslot_delete(struct kvm_memslots *slots, in kvm_memslot_delete()
982 static inline int kvm_memslot_insert_back(struct kvm_memslots *slots) in kvm_memslot_insert_back()
994 static inline int kvm_memslot_move_backward(struct kvm_memslots *slots, in kvm_memslot_move_backward()
1029 static inline int kvm_memslot_move_forward(struct kvm_memslots *slots, in kvm_memslot_move_forward()
1090 static void update_memslots(struct kvm_memslots *slots, in update_memslots()
[all …]
/kernel/linux/linux-5.10/arch/arm64/kvm/
Dmmu.c162 struct kvm_memslots *slots; in stage2_flush_vm()
169 slots = kvm_memslots(kvm); in stage2_flush_vm()
453 struct kvm_memslots *slots; in stage2_unmap_vm()
461 slots = kvm_memslots(kvm); in stage2_unmap_vm()
560 struct kvm_memslots *slots = kvm_memslots(kvm); in kvm_mmu_wp_memory_region()
1072 struct kvm_memslots *slots; in handle_hva_to_gpa()
1076 slots = kvm_memslots(kvm); in handle_hva_to_gpa()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv_uvmem.c458 struct kvm_memslots *slots; in kvmppc_h_svm_init_start()
479 slots = kvm_memslots(kvm); in kvmppc_h_svm_init_start()
487 slots = kvm_memslots(kvm); in kvmppc_h_svm_init_start()
667 kvm_for_each_memslot(memslot, kvm_memslots(kvm)) in kvmppc_h_svm_init_abort()
824 struct kvm_memslots *slots; in kvmppc_h_svm_init_done()
834 slots = kvm_memslots(kvm); in kvmppc_h_svm_init_done()
Dbook3s_64_mmu_hv.c734 struct kvm_memslots *slots; in kvmppc_rmap_reset()
739 slots = kvm_memslots(kvm); in kvmppc_rmap_reset()
764 struct kvm_memslots *slots; in kvm_handle_hva_range()
767 slots = kvm_memslots(kvm); in kvm_handle_hva_range()
1281 __gfn_to_memslot(kvm_memslots(kvm), gfn); in resize_hpt_rehash_hpte()
Dbook3s_64_vio.c349 memslot = search_memslots(kvm_memslots(kvm), gfn); in kvmppc_tce_to_ua()
Dbook3s_pr.c433 struct kvm_memslots *slots; in do_kvm_unmap_hva()
436 slots = kvm_memslots(kvm); in do_kvm_unmap_hva()
Dbook3s_hv_nested.c701 kvm_for_each_memslot(memslot, kvm_memslots(kvm)) in kvmhv_release_all_nested()
Dbook3s_hv.c4483 struct kvm_memslots *slots; in kvm_vm_ioctl_get_dirty_log_hv()
4496 slots = kvm_memslots(kvm); in kvm_vm_ioctl_get_dirty_log_hv()
5575 struct kvm_memslots *slots = __kvm_memslots(kvm, i); in kvmhv_svm_off()
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
Dmmu_audit.c131 struct kvm_memslots *slots; in inspect_spte_has_rmap()
195 struct kvm_memslots *slots; in audit_write_protection()
Dmmu.c758 struct kvm_memslots *slots; in account_shadowed()
788 struct kvm_memslots *slots; in unaccount_shadowed()
949 struct kvm_memslots *slots; in gfn_to_rmap()
1458 struct kvm_memslots *slots; in kvm_handle_hva_range()
5488 struct kvm_memslots *slots; in kvm_zap_gfn_range()
5922 struct kvm_memslots *slots; in kvm_mmu_calculate_default_mmu_pages()
Dtdp_mmu.c659 struct kvm_memslots *slots; in kvm_tdp_mmu_handle_hva_range()
/kernel/linux/linux-5.10/arch/x86/kvm/
Dx86.h172 u64 gen = kvm_memslots(vcpu->kvm)->generation; in vcpu_cache_mmio_info()
189 return vcpu->arch.mmio_gen == kvm_memslots(vcpu->kvm)->generation; in vcpu_match_mmio_gen()
Dx86.c10519 struct kvm_memslots *slots = kvm_memslots(kvm); in __x86_set_memory_region()
/kernel/linux/linux-5.10/arch/s390/kvm/
Dpv.c133 memslot = kvm_memslots(kvm)->memslots; in kvm_s390_pv_alloc_vm()
Dkvm-s390.c1011 struct kvm_memslots *slots; in kvm_s390_vm_start_migration()
1018 slots = kvm_memslots(kvm); in kvm_s390_vm_start_migration()
1924 static int gfn_to_memslot_approx(struct kvm_memslots *slots, gfn_t gfn) in gfn_to_memslot_approx()
1977 static unsigned long kvm_s390_next_dirty_cmma(struct kvm_memslots *slots, in kvm_s390_next_dirty_cmma()
2006 struct kvm_memslots *slots = kvm_memslots(kvm); in kvm_s390_get_cmma()
/kernel/linux/linux-5.10/Documentation/virt/kvm/
Dmmu.rst200 determines which of the kvm_memslots array was used to build this
450 kvm_memslots(kvm)->generation, and increased whenever guest memory info
461 Unfortunately, a single memory access might access kvm_memslots(kvm) multiple
467 returns; thus, bit 63 of kvm_memslots(kvm)->generation set to 1 only during a
/kernel/linux/linux-5.10/arch/mips/kvm/
Dmmu.c451 struct kvm_memslots *slots; in handle_hva_to_gpa()
455 slots = kvm_memslots(kvm); in handle_hva_to_gpa()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dkvm_book3s_64.h537 static inline struct kvm_memslots *kvm_memslots_raw(struct kvm *kvm) in kvm_memslots_raw()