Lines Matching refs:kvm

159 extern void kvmppc_set_hpt(struct kvm *kvm, struct kvm_hpt_info *info);
160 extern long kvmppc_alloc_reset_hpt(struct kvm *kvm, int order);
162 extern void kvmppc_rmap_reset(struct kvm *kvm);
166 extern long kvm_spapr_tce_attach_iommu_group(struct kvm *kvm, int tablefd,
168 extern void kvm_spapr_tce_release_iommu_group(struct kvm *kvm,
170 extern int kvmppc_switch_mmu_to_hpt(struct kvm *kvm);
171 extern int kvmppc_switch_mmu_to_radix(struct kvm *kvm);
172 extern void kvmppc_setup_partition_table(struct kvm *kvm);
174 extern long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
192 extern int kvmppc_core_init_vm(struct kvm *kvm);
193 extern void kvmppc_core_destroy_vm(struct kvm *kvm);
194 extern void kvmppc_core_free_memslot(struct kvm *kvm,
196 extern int kvmppc_core_prepare_memory_region(struct kvm *kvm,
200 extern void kvmppc_core_commit_memory_region(struct kvm *kvm,
204 extern int kvm_vm_ioctl_get_smmu_info(struct kvm *kvm,
206 extern void kvmppc_core_flush_memslot(struct kvm *kvm,
214 extern int kvm_vm_ioctl_get_htab_fd(struct kvm *kvm, struct kvm_get_htab_fd *);
215 extern long kvm_vm_ioctl_resize_hpt_prepare(struct kvm *kvm,
217 extern long kvm_vm_ioctl_resize_hpt_commit(struct kvm *kvm,
222 extern int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp);
224 extern void kvmppc_rtas_tokens_free(struct kvm *kvm);
226 extern int kvmppc_xics_set_xive(struct kvm *kvm, u32 irq, u32 server,
228 extern int kvmppc_xics_get_xive(struct kvm *kvm, u32 irq, u32 *server,
230 extern int kvmppc_xics_int_on(struct kvm *kvm, u32 irq);
231 extern int kvmppc_xics_int_off(struct kvm *kvm, u32 irq);
267 int (*get_dirty_log)(struct kvm *kvm, struct kvm_dirty_log *log);
268 void (*flush_memslot)(struct kvm *kvm, struct kvm_memory_slot *memslot);
269 int (*prepare_memory_region)(struct kvm *kvm,
273 void (*commit_memory_region)(struct kvm *kvm,
277 bool (*unmap_gfn_range)(struct kvm *kvm, struct kvm_gfn_range *range);
278 bool (*age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
279 bool (*test_age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
280 bool (*set_spte_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
282 int (*init_vm)(struct kvm *kvm);
283 void (*destroy_vm)(struct kvm *kvm);
284 int (*get_smmu_info)(struct kvm *kvm, struct kvm_ppc_smmu_info *info);
297 int (*configure_mmu)(struct kvm *kvm, struct kvm_ppc_mmuv3_cfg *cfg);
298 int (*get_rmmu_info)(struct kvm *kvm, struct kvm_ppc_rmmu_info *info);
299 int (*set_smt_mode)(struct kvm *kvm, unsigned long mode,
302 int (*enable_nested)(struct kvm *kvm);
307 int (*enable_svm)(struct kvm *kvm);
308 int (*svm_off)(struct kvm *kvm);
309 int (*enable_dawr1)(struct kvm *kvm);
311 int (*create_vm_debugfs)(struct kvm *kvm);
341 static inline bool is_kvmppc_hv_enabled(struct kvm *kvm) in is_kvmppc_hv_enabled() argument
343 return kvm->arch.kvm_ops == kvmppc_hv_ops; in is_kvmppc_hv_enabled()
542 vcpu->kvm->arch.kvm_ops->fast_vcpu_kick(vcpu); in kvmppc_fast_vcpu_kick()
549 extern void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu);
602 struct kvm *kvm) in kvmppc_get_passthru_irqmap() argument
604 if (kvm && kvm_irq_bypass) in kvmppc_get_passthru_irqmap()
605 return kvm->arch.pimap; in kvmppc_get_passthru_irqmap()
611 extern void kvmppc_free_pimap(struct kvm *kvm);
621 extern void kvmppc_xics_set_mapped(struct kvm *kvm, unsigned long guest_irq,
623 extern void kvmppc_xics_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
630 extern int kvmppc_xics_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
636 struct kvm *kvm) in kvmppc_get_passthru_irqmap() argument
640 static inline void kvmppc_free_pimap(struct kvm *kvm) {} in kvmppc_free_pimap() argument
661 extern int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server,
663 extern int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server,
665 extern int kvmppc_xive_int_on(struct kvm *kvm, u32 irq);
666 extern int kvmppc_xive_int_off(struct kvm *kvm, u32 irq);
671 extern int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq,
673 extern int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
678 extern int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
699 static inline int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server, in kvmppc_xive_set_xive() argument
701 static inline int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server, in kvmppc_xive_get_xive() argument
703 static inline int kvmppc_xive_int_on(struct kvm *kvm, u32 irq) { return -1; } in kvmppc_xive_int_on() argument
704 static inline int kvmppc_xive_int_off(struct kvm *kvm, u32 irq) { return -1; } in kvmppc_xive_int_off() argument
709 static inline int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq, in kvmppc_xive_set_mapped() argument
711 static inline int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq, in kvmppc_xive_clr_mapped() argument
716 static inline int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq, in kvmppc_xive_set_irq() argument