Lines Matching defs:kvm

160 extern void kvmppc_set_hpt(struct kvm *kvm, struct kvm_hpt_info *info);
161 extern long kvmppc_alloc_reset_hpt(struct kvm *kvm, int order);
163 extern void kvmppc_rmap_reset(struct kvm *kvm);
164 extern long kvmppc_prepare_vrma(struct kvm *kvm,
169 extern long kvm_spapr_tce_attach_iommu_group(struct kvm *kvm, int tablefd,
171 extern void kvm_spapr_tce_release_iommu_group(struct kvm *kvm,
173 extern int kvmppc_switch_mmu_to_hpt(struct kvm *kvm);
174 extern int kvmppc_switch_mmu_to_radix(struct kvm *kvm);
175 extern void kvmppc_setup_partition_table(struct kvm *kvm);
177 extern long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
180 struct kvm *kvm, unsigned long liobn);
197 extern int kvmppc_core_init_vm(struct kvm *kvm);
198 extern void kvmppc_core_destroy_vm(struct kvm *kvm);
199 extern void kvmppc_core_free_memslot(struct kvm *kvm,
201 extern int kvmppc_core_prepare_memory_region(struct kvm *kvm,
205 extern void kvmppc_core_commit_memory_region(struct kvm *kvm,
210 extern int kvm_vm_ioctl_get_smmu_info(struct kvm *kvm,
212 extern void kvmppc_core_flush_memslot(struct kvm *kvm,
220 extern int kvm_vm_ioctl_get_htab_fd(struct kvm *kvm, struct kvm_get_htab_fd *);
221 extern long kvm_vm_ioctl_resize_hpt_prepare(struct kvm *kvm,
223 extern long kvm_vm_ioctl_resize_hpt_commit(struct kvm *kvm,
228 extern int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp);
230 extern void kvmppc_rtas_tokens_free(struct kvm *kvm);
232 extern int kvmppc_xics_set_xive(struct kvm *kvm, u32 irq, u32 server,
234 extern int kvmppc_xics_get_xive(struct kvm *kvm, u32 irq, u32 *server,
236 extern int kvmppc_xics_int_on(struct kvm *kvm, u32 irq);
237 extern int kvmppc_xics_int_off(struct kvm *kvm, u32 irq);
273 int (*get_dirty_log)(struct kvm *kvm, struct kvm_dirty_log *log);
274 void (*flush_memslot)(struct kvm *kvm, struct kvm_memory_slot *memslot);
275 int (*prepare_memory_region)(struct kvm *kvm,
279 void (*commit_memory_region)(struct kvm *kvm,
284 int (*unmap_hva_range)(struct kvm *kvm, unsigned long start,
286 int (*age_hva)(struct kvm *kvm, unsigned long start, unsigned long end);
287 int (*test_age_hva)(struct kvm *kvm, unsigned long hva);
288 void (*set_spte_hva)(struct kvm *kvm, unsigned long hva, pte_t pte);
290 int (*init_vm)(struct kvm *kvm);
291 void (*destroy_vm)(struct kvm *kvm);
292 int (*get_smmu_info)(struct kvm *kvm, struct kvm_ppc_smmu_info *info);
305 int (*configure_mmu)(struct kvm *kvm, struct kvm_ppc_mmuv3_cfg *cfg);
306 int (*get_rmmu_info)(struct kvm *kvm, struct kvm_ppc_rmmu_info *info);
307 int (*set_smt_mode)(struct kvm *kvm, unsigned long mode,
310 int (*enable_nested)(struct kvm *kvm);
315 int (*enable_svm)(struct kvm *kvm);
316 int (*svm_off)(struct kvm *kvm);
345 static inline bool is_kvmppc_hv_enabled(struct kvm *kvm)
347 return kvm->arch.kvm_ops == kvmppc_hv_ops;
546 vcpu->kvm->arch.kvm_ops->fast_vcpu_kick(vcpu);
553 extern void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu,
595 struct kvm *kvm)
597 if (kvm && kvm_irq_bypass)
598 return kvm->arch.pimap;
604 extern void kvmppc_free_pimap(struct kvm *kvm);
613 extern void kvmppc_xics_set_mapped(struct kvm *kvm, unsigned long guest_irq,
615 extern void kvmppc_xics_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
622 extern int kvmppc_xics_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
628 struct kvm *kvm)
632 static inline void kvmppc_free_pimap(struct kvm *kvm) {};
651 extern int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server,
653 extern int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server,
655 extern int kvmppc_xive_int_on(struct kvm *kvm, u32 irq);
656 extern int kvmppc_xive_int_off(struct kvm *kvm, u32 irq);
663 extern int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq,
665 extern int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
670 extern int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
691 static inline int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server,
693 static inline int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server,
695 static inline int kvmppc_xive_int_on(struct kvm *kvm, u32 irq) { return -1; }
696 static inline int kvmppc_xive_int_off(struct kvm *kvm, u32 irq) { return -1; }
703 static inline int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq,
705 static inline int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
710 static inline int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,