Lines Matching defs: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);
291 int (*init_vm)(struct kvm *kvm);
292 void (*destroy_vm)(struct kvm *kvm);
293 int (*get_smmu_info)(struct kvm *kvm, struct kvm_ppc_smmu_info *info);
306 int (*configure_mmu)(struct kvm *kvm, struct kvm_ppc_mmuv3_cfg *cfg);
307 int (*get_rmmu_info)(struct kvm *kvm, struct kvm_ppc_rmmu_info *info);
308 int (*set_smt_mode)(struct kvm *kvm, unsigned long mode,
311 int (*enable_nested)(struct kvm *kvm);
316 int (*enable_svm)(struct kvm *kvm);
317 int (*svm_off)(struct kvm *kvm);
318 int (*enable_dawr1)(struct kvm *kvm);
320 int (*create_vm_debugfs)(struct kvm *kvm);
365 static inline bool is_kvmppc_hv_enabled(struct kvm *kvm)
367 return kvm->arch.kvm_ops == kvmppc_hv_ops;
566 vcpu->kvm->arch.kvm_ops->fast_vcpu_kick(vcpu);
573 extern void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu);
662 struct kvm *kvm)
664 if (kvm && kvm_irq_bypass)
665 return kvm->arch.pimap;
671 extern void kvmppc_free_pimap(struct kvm *kvm);
681 extern void kvmppc_xics_set_mapped(struct kvm *kvm, unsigned long guest_irq,
683 extern void kvmppc_xics_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
690 extern int kvmppc_xics_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
696 struct kvm *kvm)
700 static inline void kvmppc_free_pimap(struct kvm *kvm) {}
721 extern int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server,
723 extern int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server,
725 extern int kvmppc_xive_int_on(struct kvm *kvm, u32 irq);
726 extern int kvmppc_xive_int_off(struct kvm *kvm, u32 irq);
731 extern int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq,
733 extern int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
738 extern int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
759 static inline int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server,
761 static inline int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server,
763 static inline int kvmppc_xive_int_on(struct kvm *kvm, u32 irq) { return -1; }
764 static inline int kvmppc_xive_int_off(struct kvm *kvm, u32 irq) { return -1; }
769 static inline int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq,
771 static inline int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
776 static inline int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,