Lines Matching refs:kvm
169 extern void kvmppc_set_hpt(struct kvm *kvm, struct kvm_hpt_info *info);
170 extern int kvmppc_alloc_reset_hpt(struct kvm *kvm, int order);
172 extern void kvmppc_rmap_reset(struct kvm *kvm);
176 extern long kvm_spapr_tce_attach_iommu_group(struct kvm *kvm, int tablefd,
178 extern void kvm_spapr_tce_release_iommu_group(struct kvm *kvm,
180 extern int kvmppc_switch_mmu_to_hpt(struct kvm *kvm);
181 extern int kvmppc_switch_mmu_to_radix(struct kvm *kvm);
182 extern void kvmppc_setup_partition_table(struct kvm *kvm);
184 extern int kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
202 extern int kvmppc_core_init_vm(struct kvm *kvm);
203 extern void kvmppc_core_destroy_vm(struct kvm *kvm);
204 extern void kvmppc_core_free_memslot(struct kvm *kvm,
206 extern int kvmppc_core_prepare_memory_region(struct kvm *kvm,
210 extern void kvmppc_core_commit_memory_region(struct kvm *kvm,
214 extern int kvm_vm_ioctl_get_smmu_info(struct kvm *kvm,
216 extern void kvmppc_core_flush_memslot(struct kvm *kvm,
224 extern int kvm_vm_ioctl_get_htab_fd(struct kvm *kvm, struct kvm_get_htab_fd *);
225 extern int kvm_vm_ioctl_resize_hpt_prepare(struct kvm *kvm,
227 extern int kvm_vm_ioctl_resize_hpt_commit(struct kvm *kvm,
232 extern int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp);
234 extern void kvmppc_rtas_tokens_free(struct kvm *kvm);
236 extern int kvmppc_xics_set_xive(struct kvm *kvm, u32 irq, u32 server,
238 extern int kvmppc_xics_get_xive(struct kvm *kvm, u32 irq, u32 *server,
240 extern int kvmppc_xics_int_on(struct kvm *kvm, u32 irq);
241 extern int kvmppc_xics_int_off(struct kvm *kvm, u32 irq);
277 int (*get_dirty_log)(struct kvm *kvm, struct kvm_dirty_log *log);
278 void (*flush_memslot)(struct kvm *kvm, struct kvm_memory_slot *memslot);
279 int (*prepare_memory_region)(struct kvm *kvm,
283 void (*commit_memory_region)(struct kvm *kvm,
287 bool (*unmap_gfn_range)(struct kvm *kvm, struct kvm_gfn_range *range);
288 bool (*age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
289 bool (*test_age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
290 bool (*set_spte_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
292 int (*init_vm)(struct kvm *kvm);
293 void (*destroy_vm)(struct kvm *kvm);
294 int (*get_smmu_info)(struct kvm *kvm, struct kvm_ppc_smmu_info *info);
307 int (*configure_mmu)(struct kvm *kvm, struct kvm_ppc_mmuv3_cfg *cfg);
308 int (*get_rmmu_info)(struct kvm *kvm, struct kvm_ppc_rmmu_info *info);
309 int (*set_smt_mode)(struct kvm *kvm, unsigned long mode,
312 int (*enable_nested)(struct kvm *kvm);
317 int (*enable_svm)(struct kvm *kvm);
318 int (*svm_off)(struct kvm *kvm);
319 int (*enable_dawr1)(struct kvm *kvm);
321 int (*create_vm_debugfs)(struct kvm *kvm);
366 static inline bool is_kvmppc_hv_enabled(struct kvm *kvm) in is_kvmppc_hv_enabled() argument
368 return kvm->arch.kvm_ops == kvmppc_hv_ops; in is_kvmppc_hv_enabled()
567 vcpu->kvm->arch.kvm_ops->fast_vcpu_kick(vcpu); in kvmppc_fast_vcpu_kick()
574 extern void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu);
627 struct kvm *kvm) in kvmppc_get_passthru_irqmap() argument
629 if (kvm && kvm_irq_bypass) in kvmppc_get_passthru_irqmap()
630 return kvm->arch.pimap; in kvmppc_get_passthru_irqmap()
636 extern void kvmppc_free_pimap(struct kvm *kvm);
646 extern void kvmppc_xics_set_mapped(struct kvm *kvm, unsigned long guest_irq,
648 extern void kvmppc_xics_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
655 extern int kvmppc_xics_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
661 struct kvm *kvm) in kvmppc_get_passthru_irqmap() argument
665 static inline void kvmppc_free_pimap(struct kvm *kvm) {} in kvmppc_free_pimap() argument
686 extern int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server,
688 extern int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server,
690 extern int kvmppc_xive_int_on(struct kvm *kvm, u32 irq);
691 extern int kvmppc_xive_int_off(struct kvm *kvm, u32 irq);
696 extern int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq,
698 extern int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
703 extern int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
724 static inline int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server, in kvmppc_xive_set_xive() argument
726 static inline int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server, in kvmppc_xive_get_xive() argument
728 static inline int kvmppc_xive_int_on(struct kvm *kvm, u32 irq) { return -1; } in kvmppc_xive_int_on() argument
729 static inline int kvmppc_xive_int_off(struct kvm *kvm, u32 irq) { return -1; } in kvmppc_xive_int_off() argument
734 static inline int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq, in kvmppc_xive_set_mapped() argument
736 static inline int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq, in kvmppc_xive_clr_mapped() argument
741 static inline int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq, in kvmppc_xive_set_irq() argument