/linux-6.6.21/arch/x86/kvm/mmu/ |
D | tdp_mmu.c | 15 void kvm_mmu_init_tdp_mmu(struct kvm *kvm) in kvm_mmu_init_tdp_mmu() 22 static __always_inline bool kvm_lockdep_assert_mmu_lock_held(struct kvm *kvm, in kvm_lockdep_assert_mmu_lock_held() 33 void kvm_mmu_uninit_tdp_mmu(struct kvm *kvm) in kvm_mmu_uninit_tdp_mmu() 76 void kvm_tdp_mmu_put_root(struct kvm *kvm, struct kvm_mmu_page *root, in kvm_tdp_mmu_put_root() 107 static struct kvm_mmu_page *tdp_mmu_next_root(struct kvm *kvm, in tdp_mmu_next_root() 223 struct kvm *kvm = vcpu->kvm; in kvm_tdp_mmu_get_vcpu_root_hpa() local 262 static void tdp_account_mmu_page(struct kvm *kvm, struct kvm_mmu_page *sp) in tdp_account_mmu_page() 268 static void tdp_unaccount_mmu_page(struct kvm *kvm, struct kvm_mmu_page *sp) in tdp_unaccount_mmu_page() 283 static void tdp_mmu_unlink_sp(struct kvm *kvm, struct kvm_mmu_page *sp, in tdp_mmu_unlink_sp() 320 static void handle_removed_pt(struct kvm *kvm, tdp_ptep_t pt, bool shared) in handle_removed_pt() [all …]
|
D | page_track.c | 23 bool kvm_page_track_write_tracking_enabled(struct kvm *kvm) in kvm_page_track_write_tracking_enabled() 47 int kvm_page_track_create_memslot(struct kvm *kvm, in kvm_page_track_create_memslot() 77 void __kvm_write_track_add_gfn(struct kvm *kvm, struct kvm_memory_slot *slot, in __kvm_write_track_add_gfn() 100 void __kvm_write_track_remove_gfn(struct kvm *kvm, in __kvm_write_track_remove_gfn() 123 bool kvm_gfn_is_write_tracked(struct kvm *kvm, in kvm_gfn_is_write_tracked() 139 void kvm_page_track_cleanup(struct kvm *kvm) in kvm_page_track_cleanup() 147 int kvm_page_track_init(struct kvm *kvm) in kvm_page_track_init() 160 int kvm_page_track_register_notifier(struct kvm *kvm, in kvm_page_track_register_notifier() 183 void kvm_page_track_unregister_notifier(struct kvm *kvm, in kvm_page_track_unregister_notifier() 206 void __kvm_page_track_write(struct kvm *kvm, gpa_t gpa, const u8 *new, int bytes) in __kvm_page_track_write() [all …]
|
D | page_track.h | 33 static inline bool kvm_page_track_has_external_user(struct kvm *kvm) in kvm_page_track_has_external_user() 38 static inline int kvm_page_track_init(struct kvm *kvm) { return 0; } in kvm_page_track_init() 39 static inline void kvm_page_track_cleanup(struct kvm *kvm) { } in kvm_page_track_cleanup() 41 static inline void __kvm_page_track_write(struct kvm *kvm, gpa_t gpa, in __kvm_page_track_write() 43 static inline void kvm_page_track_delete_slot(struct kvm *kvm, in kvm_page_track_delete_slot() 46 static inline bool kvm_page_track_has_external_user(struct kvm *kvm) { return false; } in kvm_page_track_has_external_user()
|
D | mmu.c | 277 int kvm_arch_flush_remote_tlbs_range(struct kvm *kvm, gfn_t gfn, u64 nr_pages) in kvm_arch_flush_remote_tlbs_range() 288 static void kvm_flush_remote_tlbs_sptep(struct kvm *kvm, u64 *sptep) in kvm_flush_remote_tlbs_sptep() 565 static u64 mmu_spte_clear_track_bits(struct kvm *kvm, u64 *sptep) in mmu_spte_clear_track_bits() 821 static void account_shadowed(struct kvm *kvm, struct kvm_mmu_page *sp) in account_shadowed() 842 void track_possible_nx_huge_page(struct kvm *kvm, struct kvm_mmu_page *sp) in track_possible_nx_huge_page() 860 static void account_nx_huge_page(struct kvm *kvm, struct kvm_mmu_page *sp, in account_nx_huge_page() 869 static void unaccount_shadowed(struct kvm *kvm, struct kvm_mmu_page *sp) in unaccount_shadowed() 885 void untrack_possible_nx_huge_page(struct kvm *kvm, struct kvm_mmu_page *sp) in untrack_possible_nx_huge_page() 894 static void unaccount_nx_huge_page(struct kvm *kvm, struct kvm_mmu_page *sp) in unaccount_nx_huge_page() 963 static void pte_list_desc_remove_entry(struct kvm *kvm, in pte_list_desc_remove_entry() [all …]
|
/linux-6.6.21/arch/x86/kvm/ |
D | irq_comm.c | 31 struct kvm *kvm, int irq_source_id, int level, in kvm_set_pic_irq() 39 struct kvm *kvm, int irq_source_id, int level, in kvm_set_ioapic_irq() 47 int kvm_irq_delivery_to_apic(struct kvm *kvm, struct kvm_lapic *src, in kvm_irq_delivery_to_apic() 104 void kvm_set_msi_irq(struct kvm *kvm, struct kvm_kernel_irq_routing_entry *e, in kvm_set_msi_irq() 125 static inline bool kvm_msi_route_invalid(struct kvm *kvm, in kvm_msi_route_invalid() 132 struct kvm *kvm, int irq_source_id, int level, bool line_status) in kvm_set_msi() 149 struct kvm *kvm, int irq_source_id, int level, in kvm_hv_set_sint() 159 struct kvm *kvm, int irq_source_id, int level, in kvm_arch_set_irq_inatomic() 194 int kvm_request_irq_source_id(struct kvm *kvm) in kvm_request_irq_source_id() 217 void kvm_free_irq_source_id(struct kvm *kvm, int irq_source_id) in kvm_free_irq_source_id() [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | kvm_book3s_uvmem.h | 44 kvmppc_uvmem_slot_init(struct kvm *kvm, const struct kvm_memory_slot *slot) in kvmppc_uvmem_slot_init() 50 kvmppc_uvmem_slot_free(struct kvm *kvm, const struct kvm_memory_slot *slot) { } in kvmppc_uvmem_slot_free() 53 kvmppc_h_svm_page_in(struct kvm *kvm, unsigned long gra, in kvmppc_h_svm_page_in() 60 kvmppc_h_svm_page_out(struct kvm *kvm, unsigned long gra, in kvmppc_h_svm_page_out() 66 static inline unsigned long kvmppc_h_svm_init_start(struct kvm *kvm) in kvmppc_h_svm_init_start() 71 static inline unsigned long kvmppc_h_svm_init_done(struct kvm *kvm) in kvmppc_h_svm_init_done() 76 static inline unsigned long kvmppc_h_svm_init_abort(struct kvm *kvm) in kvmppc_h_svm_init_abort() 81 static inline int kvmppc_send_page_to_uv(struct kvm *kvm, unsigned long gfn) in kvmppc_send_page_to_uv() 88 struct kvm *kvm, bool skip_page_out) { } in kvmppc_uvmem_drop_pages() 90 static inline int kvmppc_uvmem_memslot_create(struct kvm *kvm, in kvmppc_uvmem_memslot_create() [all …]
|
/linux-6.6.21/virt/kvm/ |
D | eventfd.c | 36 kvm_arch_irqfd_allowed(struct kvm *kvm, struct kvm_irqfd *args) in kvm_arch_irqfd_allowed() 46 struct kvm *kvm = irqfd->kvm; in irqfd_inject() local 76 struct kvm *kvm; in irqfd_resampler_ack() local 95 struct kvm *kvm = resampler->kvm; in irqfd_resampler_shutdown() local 125 struct kvm *kvm = irqfd->kvm; in irqfd_shutdown() local 183 struct kvm *kvm, int irq_source_id, in kvm_arch_set_irq_inatomic() 200 struct kvm *kvm = irqfd->kvm; in irqfd_wakeup() local 257 static void irqfd_update(struct kvm *kvm, struct kvm_kernel_irqfd *irqfd) in irqfd_update() 288 struct kvm *kvm, unsigned int host_irq, in kvm_arch_update_irqfd_routing() 303 kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) in kvm_irqfd_assign() [all …]
|
D | kvm_mm.h | 14 #define KVM_MMU_LOCK_INIT(kvm) rwlock_init(&(kvm)->mmu_lock) argument 15 #define KVM_MMU_LOCK(kvm) write_lock(&(kvm)->mmu_lock) argument 16 #define KVM_MMU_UNLOCK(kvm) write_unlock(&(kvm)->mmu_lock) argument 18 #define KVM_MMU_LOCK_INIT(kvm) spin_lock_init(&(kvm)->mmu_lock) argument 19 #define KVM_MMU_LOCK(kvm) spin_lock(&(kvm)->mmu_lock) argument 20 #define KVM_MMU_UNLOCK(kvm) spin_unlock(&(kvm)->mmu_lock) argument 32 static inline void gfn_to_pfn_cache_invalidate_start(struct kvm *kvm, in gfn_to_pfn_cache_invalidate_start()
|
D | kvm_main.c | 157 __weak void kvm_arch_guest_memory_reclaimed(struct kvm *kvm) in kvm_arch_guest_memory_reclaimed() 290 bool kvm_make_vcpus_request_mask(struct kvm *kvm, unsigned int req, in kvm_make_vcpus_request_mask() 316 bool kvm_make_all_cpus_request_except(struct kvm *kvm, unsigned int req, in kvm_make_all_cpus_request_except() 342 bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req) in kvm_make_all_cpus_request() 348 void kvm_flush_remote_tlbs(struct kvm *kvm) in kvm_flush_remote_tlbs() 369 void kvm_flush_remote_tlbs_range(struct kvm *kvm, gfn_t gfn, u64 nr_pages) in kvm_flush_remote_tlbs_range() 382 void kvm_flush_remote_tlbs_memslot(struct kvm *kvm, in kvm_flush_remote_tlbs_memslot() 396 static void kvm_flush_shadow_all(struct kvm *kvm) in kvm_flush_shadow_all() 484 static void kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id) in kvm_vcpu_init() 524 void kvm_destroy_vcpus(struct kvm *kvm) in kvm_destroy_vcpus() [all …]
|
D | irqchip.c | 21 int kvm_irq_map_gsi(struct kvm *kvm, in kvm_irq_map_gsi() 40 int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) in kvm_irq_map_chip_pin() 48 int kvm_send_userspace_msi(struct kvm *kvm, struct kvm_msi *msi) in kvm_send_userspace_msi() 70 int kvm_set_irq(struct kvm *kvm, int irq_source_id, u32 irq, int level, in kvm_set_irq() 119 void kvm_free_irq_routing(struct kvm *kvm) in kvm_free_irq_routing() 127 static int setup_routing_entry(struct kvm *kvm, in setup_routing_entry() 159 void __attribute__((weak)) kvm_arch_irq_routing_update(struct kvm *kvm) in kvm_arch_irq_routing_update() 163 bool __weak kvm_arch_can_set_irq_routing(struct kvm *kvm) in kvm_arch_can_set_irq_routing() 168 int kvm_set_irq_routing(struct kvm *kvm, in kvm_set_irq_routing()
|
/linux-6.6.21/include/linux/ |
D | kvm_host.h | 323 struct kvm *kvm; member 704 struct kvm { struct 716 * kvm->srcu critical section where acquiring the slots_lock would argument 724 struct kvm_memslots __memslots[KVM_ADDRESS_SPACE_NUM][2]; argument 726 struct kvm_memslots __rcu *memslots[KVM_ADDRESS_SPACE_NUM]; argument 744 * created_vcpus is protected by kvm->lock, and is incremented argument 755 struct kvm_io_bus __rcu *buses[KVM_NR_BUSES]; argument 766 struct kvm_vm_stat stat; argument 767 struct kvm_arch arch; argument 770 struct kvm_coalesced_mmio_ring *coalesced_mmio_ring; argument [all …]
|
/linux-6.6.21/arch/riscv/kvm/ |
D | vm.c | 30 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) in kvm_arch_init_vm() 51 void kvm_arch_destroy_vm(struct kvm *kvm) in kvm_arch_destroy_vm() 58 int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irql, in kvm_vm_ioctl_irq_line() 68 struct kvm *kvm, int irq_source_id, in kvm_set_msi() 86 struct kvm *kvm, int irq_source_id, in kvm_riscv_set_irq() 92 int kvm_riscv_setup_default_irq_routing(struct kvm *kvm, u32 lines) in kvm_riscv_setup_default_irq_routing() 113 bool kvm_arch_can_set_irq_routing(struct kvm *kvm) in kvm_arch_can_set_irq_routing() 118 int kvm_set_routing_entry(struct kvm *kvm, in kvm_set_routing_entry() 150 struct kvm *kvm, int irq_source_id, int level, in kvm_arch_set_irq_inatomic() 168 bool kvm_arch_irqchip_in_kernel(struct kvm *kvm) in kvm_arch_irqchip_in_kernel() [all …]
|
D | mmu.c | 97 static bool gstage_get_leaf_entry(struct kvm *kvm, gpa_t addr, in gstage_get_leaf_entry() 126 static void gstage_remote_tlb_flush(struct kvm *kvm, u32 level, gpa_t addr) in gstage_remote_tlb_flush() 137 static int gstage_set_pte(struct kvm *kvm, u32 level, in gstage_set_pte() 177 static int gstage_map_page(struct kvm *kvm, in gstage_map_page() 228 static void gstage_op_pte(struct kvm *kvm, gpa_t addr, in gstage_op_pte() 269 static void gstage_unmap_range(struct kvm *kvm, gpa_t start, in gstage_unmap_range() 305 static void gstage_wp_range(struct kvm *kvm, gpa_t start, gpa_t end) in gstage_wp_range() 333 static void gstage_wp_memory_region(struct kvm *kvm, int slot) in gstage_wp_memory_region() 346 int kvm_riscv_gstage_ioremap(struct kvm *kvm, gpa_t gpa, in kvm_riscv_gstage_ioremap() 386 void kvm_riscv_gstage_iounmap(struct kvm *kvm, gpa_t gpa, unsigned long size) in kvm_riscv_gstage_iounmap() [all …]
|
D | aia_device.c | 15 static void unlock_vcpus(struct kvm *kvm, int vcpu_lock_idx) in unlock_vcpus() 25 static void unlock_all_vcpus(struct kvm *kvm) in unlock_all_vcpus() 30 static bool lock_all_vcpus(struct kvm *kvm) in lock_all_vcpus() 49 struct kvm *kvm = dev->kvm; in aia_create() local 77 static int aia_config(struct kvm *kvm, unsigned long type, in aia_config() 171 static int aia_aplic_addr(struct kvm *kvm, u64 *addr, bool write) in aia_aplic_addr() 190 static int aia_imsic_addr(struct kvm *kvm, u64 *addr, in aia_imsic_addr() 251 static int aia_init(struct kvm *kvm) in aia_init() 574 int kvm_riscv_aia_inject_msi_by_id(struct kvm *kvm, u32 hart_index, in kvm_riscv_aia_inject_msi_by_id() 595 int kvm_riscv_aia_inject_msi(struct kvm *kvm, struct kvm_msi *msi) in kvm_riscv_aia_inject_msi() [all …]
|
/linux-6.6.21/arch/s390/kvm/ |
D | kvm-s390.c | 295 struct kvm *kvm; in kvm_clock_sync() local 542 int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) in kvm_vm_ioctl_check_extension() 663 void kvm_arch_sync_dirty_log(struct kvm *kvm, struct kvm_memory_slot *memslot) in kvm_arch_sync_dirty_log() 699 int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, in kvm_vm_ioctl_get_dirty_log() 731 static void icpt_operexc_on_all_vcpus(struct kvm *kvm) in icpt_operexc_on_all_vcpus() 741 int kvm_vm_ioctl_enable_cap(struct kvm *kvm, struct kvm_enable_cap *cap) in kvm_vm_ioctl_enable_cap() 889 static int kvm_s390_get_mem_control(struct kvm *kvm, struct kvm_device_attr *attr) in kvm_s390_get_mem_control() 908 static int kvm_s390_set_mem_control(struct kvm *kvm, struct kvm_device_attr *attr) in kvm_s390_set_mem_control() 998 void kvm_s390_vcpu_crypto_reset_all(struct kvm *kvm) in kvm_s390_vcpu_crypto_reset_all() 1014 static int kvm_s390_vm_set_crypto(struct kvm *kvm, struct kvm_device_attr *attr) in kvm_s390_vm_set_crypto() [all …]
|
D | pv.c | 21 bool kvm_s390_pv_is_protected(struct kvm *kvm) in kvm_s390_pv_is_protected() 58 static void kvm_s390_clear_pv_state(struct kvm *kvm) in kvm_s390_clear_pv_state() 157 static void kvm_s390_pv_dealloc_vm(struct kvm *kvm) in kvm_s390_pv_dealloc_vm() 165 static int kvm_s390_pv_alloc_vm(struct kvm *kvm) in kvm_s390_pv_alloc_vm() 214 static int kvm_s390_pv_dispose_one_leftover(struct kvm *kvm, in kvm_s390_pv_dispose_one_leftover() 249 static void kvm_s390_destroy_lower_2g(struct kvm *kvm) in kvm_s390_destroy_lower_2g() 271 static int kvm_s390_pv_deinit_vm_fast(struct kvm *kvm, u16 *rc, u16 *rrc) in kvm_s390_pv_deinit_vm_fast() 320 int kvm_s390_pv_set_aside(struct kvm *kvm, u16 *rc, u16 *rrc) in kvm_s390_pv_set_aside() 386 int kvm_s390_pv_deinit_vm(struct kvm *kvm, u16 *rc, u16 *rrc) in kvm_s390_pv_deinit_vm() 422 int kvm_s390_pv_deinit_cleanup_all(struct kvm *kvm, u16 *rc, u16 *rrc) in kvm_s390_pv_deinit_cleanup_all() [all …]
|
/linux-6.6.21/arch/powerpc/kvm/ |
D | book3s_hv_uvmem.c | 233 struct kvm *kvm; member 248 int kvmppc_uvmem_slot_init(struct kvm *kvm, const struct kvm_memory_slot *slot) in kvmppc_uvmem_slot_init() 273 void kvmppc_uvmem_slot_free(struct kvm *kvm, const struct kvm_memory_slot *slot) in kvmppc_uvmem_slot_free() 289 static void kvmppc_mark_gfn(unsigned long gfn, struct kvm *kvm, in kvmppc_mark_gfn() 309 unsigned long uvmem_pfn, struct kvm *kvm) 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() [all …]
|
D | book3s_64_mmu_radix.c | 141 struct kvm *kvm = vcpu->kvm; in kvmppc_mmu_walk_radix_tree() local 237 struct kvm *kvm = vcpu->kvm; in kvmppc_mmu_radix_translate_table() local 310 void kvmppc_radix_tlbie_page(struct kvm *kvm, unsigned long addr, in kvmppc_radix_tlbie_page() 348 static void kvmppc_radix_flush_pwc(struct kvm *kvm, unsigned int lpid) in kvmppc_radix_flush_pwc() 369 static unsigned long kvmppc_radix_update_pte(struct kvm *kvm, pte_t *ptep, in kvmppc_radix_update_pte() 376 static void kvmppc_radix_set_pte_at(struct kvm *kvm, unsigned long addr, in kvmppc_radix_set_pte_at() 418 void kvmppc_unmap_pte(struct kvm *kvm, pte_t *pte, unsigned long gpa, in kvmppc_unmap_pte() 471 static void kvmppc_unmap_free_pte(struct kvm *kvm, pte_t *pte, bool full, in kvmppc_unmap_free_pte() 492 static void kvmppc_unmap_free_pmd(struct kvm *kvm, pmd_t *pmd, bool full, in kvmppc_unmap_free_pmd() 521 static void kvmppc_unmap_free_pud(struct kvm *kvm, pud_t *pud, in kvmppc_unmap_free_pud() [all …]
|
D | book3s_64_mmu_hv.c | 53 struct kvm *kvm; member 118 void kvmppc_set_hpt(struct kvm *kvm, struct kvm_hpt_info *info) in kvmppc_set_hpt() 128 int kvmppc_alloc_reset_hpt(struct kvm *kvm, int order) in kvmppc_alloc_reset_hpt() 217 struct kvm *kvm = vcpu->kvm; in kvmppc_map_vrma() local 292 static long kvmppc_virtmode_do_h_enter(struct kvm *kvm, unsigned long flags, in kvmppc_virtmode_do_h_enter() 344 struct kvm *kvm = vcpu->kvm; in kvmppc_mmu_book3s_64_hv_xlate() local 509 struct kvm *kvm = vcpu->kvm; in kvmppc_book3s_hv_page_fault() local 756 void kvmppc_rmap_reset(struct kvm *kvm) in kvmppc_rmap_reset() 779 static void kvmppc_unmap_hpte(struct kvm *kvm, unsigned long i, in kvmppc_unmap_hpte() 821 static void kvm_unmap_rmapp(struct kvm *kvm, struct kvm_memory_slot *memslot, in kvm_unmap_rmapp() [all …]
|
D | book3s_hv_nested.c | 532 struct kvm *kvm = vcpu->kvm; in kvmhv_set_partition_table() local 637 struct kvm *kvm = gp->l1_host; in kvmhv_update_ptbl_cache() local 657 void kvmhv_vm_nested_init(struct kvm *kvm) in kvmhv_vm_nested_init() 662 static struct kvm_nested_guest *__find_nested(struct kvm *kvm, int lpid) in __find_nested() 667 static bool __prealloc_nested(struct kvm *kvm, int lpid) in __prealloc_nested() 675 static void __add_nested(struct kvm *kvm, int lpid, struct kvm_nested_guest *gp) in __add_nested() 681 static void __remove_nested(struct kvm *kvm, int lpid) in __remove_nested() 686 static struct kvm_nested_guest *kvmhv_alloc_nested(struct kvm *kvm, unsigned int lpid) in kvmhv_alloc_nested() 722 struct kvm *kvm = gp->l1_host; in kvmhv_release_nested() local 741 struct kvm *kvm = gp->l1_host; in kvmhv_remove_nested() local [all …]
|
D | book3s_hv_rm_mmu.c | 32 static int global_invalidates(struct kvm *kvm) in global_invalidates() 68 void kvmppc_add_revmap_chain(struct kvm *kvm, struct revmap_entry *rev, in kvmppc_add_revmap_chain() 109 static void kvmppc_set_dirty_from_hpte(struct kvm *kvm, in kvmppc_set_dirty_from_hpte() 124 static unsigned long *revmap_for_hpte(struct kvm *kvm, unsigned long hpte_v, in revmap_for_hpte() 147 static void remove_revmap_chain(struct kvm *kvm, long pte_index, in remove_revmap_chain() 184 long kvmppc_do_h_enter(struct kvm *kvm, unsigned long flags, in kvmppc_do_h_enter() 454 static void do_tlbies(struct kvm *kvm, unsigned long *rbvalues, in do_tlbies() 485 long kvmppc_do_h_remove(struct kvm *kvm, unsigned long flags, in kvmppc_do_h_remove() 557 struct kvm *kvm = vcpu->kvm; in kvmppc_h_bulk_remove() local 677 struct kvm *kvm = vcpu->kvm; in kvmppc_h_protect() local [all …]
|
/linux-6.6.21/arch/x86/kvm/svm/ |
D | sev.c | 113 static inline bool is_mirroring_enc_context(struct kvm *kvm) in is_mirroring_enc_context() 190 static int sev_get_asid(struct kvm *kvm) in sev_get_asid() 229 static void sev_unbind_asid(struct kvm *kvm, unsigned int handle) in sev_unbind_asid() 246 static int sev_guest_init(struct kvm *kvm, struct kvm_sev_cmd *argp) in sev_guest_init() 285 static int sev_bind_asid(struct kvm *kvm, unsigned int handle, int *error) in sev_bind_asid() 314 static int sev_issue_cmd(struct kvm *kvm, int id, void *data, int *error) in sev_issue_cmd() 321 static int sev_launch_start(struct kvm *kvm, struct kvm_sev_cmd *argp) in sev_launch_start() 393 static struct page **sev_pin_memory(struct kvm *kvm, unsigned long uaddr, in sev_pin_memory() 456 static void sev_unpin_memory(struct kvm *kvm, struct page **pages, in sev_unpin_memory() 504 static int sev_launch_update_data(struct kvm *kvm, struct kvm_sev_cmd *argp) in sev_launch_update_data() [all …]
|
/linux-6.6.21/arch/arm64/kvm/vgic/ |
D | vgic-init.c | 52 void kvm_vgic_early_init(struct kvm *kvm) in kvm_vgic_early_init() 71 int kvm_vgic_create(struct kvm *kvm, u32 type) in kvm_vgic_create() 140 static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis) in kvm_vgic_dist_init() 262 int vgic_init(struct kvm *kvm) in vgic_init() 343 static void kvm_vgic_dist_destroy(struct kvm *kvm) in kvm_vgic_dist_destroy() 390 struct kvm *kvm = vcpu->kvm; in kvm_vgic_vcpu_destroy() local 397 void kvm_vgic_destroy(struct kvm *kvm) in kvm_vgic_destroy() 423 int vgic_lazy_init(struct kvm *kvm) in vgic_lazy_init() 456 int kvm_vgic_map_resources(struct kvm *kvm) in kvm_vgic_map_resources()
|
D | vgic-its.c | 39 static struct vgic_irq *vgic_add_lpi(struct kvm *kvm, u32 intid, in vgic_add_lpi() 280 static int update_lpi_config(struct kvm *kvm, struct vgic_irq *irq, in update_lpi_config() 319 int vgic_copy_lpi_list(struct kvm *kvm, struct kvm_vcpu *vcpu, u32 **intid_ptr) in vgic_copy_lpi_list() 387 static void update_affinity_ite(struct kvm *kvm, struct its_ite *ite) in update_affinity_ite() 402 static void update_affinity_collection(struct kvm *kvm, struct vgic_its *its, in update_affinity_collection() 479 static unsigned long vgic_mmio_read_its_typer(struct kvm *kvm, in vgic_mmio_read_its_typer() 501 static unsigned long vgic_mmio_read_its_iidr(struct kvm *kvm, in vgic_mmio_read_its_iidr() 512 static int vgic_mmio_uaccess_write_its_iidr(struct kvm *kvm, in vgic_mmio_uaccess_write_its_iidr() 524 static unsigned long vgic_mmio_read_its_idregs(struct kvm *kvm, in vgic_mmio_read_its_idregs() 582 static struct vgic_irq *vgic_its_check_cache(struct kvm *kvm, phys_addr_t db, in vgic_its_check_cache() [all …]
|
/linux-6.6.21/arch/arm64/kvm/ |
D | mmu.c | 61 struct kvm *kvm = kvm_s2_mmu_to_kvm(mmu); in stage2_apply_range() local 100 static bool need_split_memcache_topup_or_resched(struct kvm *kvm) in need_split_memcache_topup_or_resched() 114 static int kvm_mmu_split_huge_pages(struct kvm *kvm, phys_addr_t addr, in kvm_mmu_split_huge_pages() 169 int kvm_arch_flush_remote_tlbs(struct kvm *kvm) in kvm_arch_flush_remote_tlbs() 175 int kvm_arch_flush_remote_tlbs_range(struct kvm *kvm, in kvm_arch_flush_remote_tlbs_range() 322 struct kvm *kvm = kvm_s2_mmu_to_kvm(mmu); in __unmap_stage2_range() local 336 static void stage2_flush_memslot(struct kvm *kvm, in stage2_flush_memslot() 352 static void stage2_flush_vm(struct kvm *kvm) in stage2_flush_vm() 802 static int get_user_mapping_size(struct kvm *kvm, u64 addr) in get_user_mapping_size() 866 int kvm_init_stage2_mmu(struct kvm *kvm, struct kvm_s2_mmu *mmu, unsigned long type) in kvm_init_stage2_mmu() [all …]
|