Lines Matching refs:kvm
161 extern void kvmppc_set_hpt(struct kvm *kvm, struct kvm_hpt_info *info);
162 extern long kvmppc_alloc_reset_hpt(struct kvm *kvm, int order);
164 extern void kvmppc_rmap_reset(struct kvm *kvm);
165 extern long kvmppc_prepare_vrma(struct kvm *kvm,
170 extern long kvm_spapr_tce_attach_iommu_group(struct kvm *kvm, int tablefd,
172 extern void kvm_spapr_tce_release_iommu_group(struct kvm *kvm,
174 extern int kvmppc_switch_mmu_to_hpt(struct kvm *kvm);
175 extern int kvmppc_switch_mmu_to_radix(struct kvm *kvm);
176 extern void kvmppc_setup_partition_table(struct kvm *kvm);
178 extern long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
181 struct kvm *kvm, unsigned long liobn);
198 extern int kvmppc_core_init_vm(struct kvm *kvm);
199 extern void kvmppc_core_destroy_vm(struct kvm *kvm);
200 extern void kvmppc_core_free_memslot(struct kvm *kvm,
202 extern int kvmppc_core_prepare_memory_region(struct kvm *kvm,
206 extern void kvmppc_core_commit_memory_region(struct kvm *kvm,
211 extern int kvm_vm_ioctl_get_smmu_info(struct kvm *kvm,
213 extern void kvmppc_core_flush_memslot(struct kvm *kvm,
221 extern int kvm_vm_ioctl_get_htab_fd(struct kvm *kvm, struct kvm_get_htab_fd *);
222 extern long kvm_vm_ioctl_resize_hpt_prepare(struct kvm *kvm,
224 extern long kvm_vm_ioctl_resize_hpt_commit(struct kvm *kvm,
229 extern int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp);
231 extern void kvmppc_rtas_tokens_free(struct kvm *kvm);
233 extern int kvmppc_xics_set_xive(struct kvm *kvm, u32 irq, u32 server,
235 extern int kvmppc_xics_get_xive(struct kvm *kvm, u32 irq, u32 *server,
237 extern int kvmppc_xics_int_on(struct kvm *kvm, u32 irq);
238 extern int kvmppc_xics_int_off(struct kvm *kvm, u32 irq);
274 int (*get_dirty_log)(struct kvm *kvm, struct kvm_dirty_log *log);
275 void (*flush_memslot)(struct kvm *kvm, struct kvm_memory_slot *memslot);
276 int (*prepare_memory_region)(struct kvm *kvm,
280 void (*commit_memory_region)(struct kvm *kvm,
285 bool (*unmap_gfn_range)(struct kvm *kvm, struct kvm_gfn_range *range);
286 bool (*age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
287 bool (*test_age_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
288 bool (*set_spte_gfn)(struct kvm *kvm, struct kvm_gfn_range *range);
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);
317 int (*enable_dawr1)(struct kvm *kvm);
347 static inline bool is_kvmppc_hv_enabled(struct kvm *kvm) in is_kvmppc_hv_enabled() argument
349 return kvm->arch.kvm_ops == kvmppc_hv_ops; in is_kvmppc_hv_enabled()
548 vcpu->kvm->arch.kvm_ops->fast_vcpu_kick(vcpu); in kvmppc_fast_vcpu_kick()
555 extern void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu,
597 struct kvm *kvm) in kvmppc_get_passthru_irqmap() argument
599 if (kvm && kvm_irq_bypass) in kvmppc_get_passthru_irqmap()
600 return kvm->arch.pimap; in kvmppc_get_passthru_irqmap()
606 extern void kvmppc_free_pimap(struct kvm *kvm);
616 extern void kvmppc_xics_set_mapped(struct kvm *kvm, unsigned long guest_irq,
618 extern void kvmppc_xics_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
625 extern int kvmppc_xics_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
631 struct kvm *kvm) in kvmppc_get_passthru_irqmap() argument
635 static inline void kvmppc_free_pimap(struct kvm *kvm) {} in kvmppc_free_pimap() argument
656 extern int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server,
658 extern int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server,
660 extern int kvmppc_xive_int_on(struct kvm *kvm, u32 irq);
661 extern int kvmppc_xive_int_off(struct kvm *kvm, u32 irq);
666 extern int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq,
668 extern int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
673 extern int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
694 static inline int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server, in kvmppc_xive_set_xive() argument
696 static inline int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server, in kvmppc_xive_get_xive() argument
698 static inline int kvmppc_xive_int_on(struct kvm *kvm, u32 irq) { return -1; } in kvmppc_xive_int_on() argument
699 static inline int kvmppc_xive_int_off(struct kvm *kvm, u32 irq) { return -1; } in kvmppc_xive_int_off() argument
704 static inline int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq, in kvmppc_xive_set_mapped() argument
706 static inline int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq, in kvmppc_xive_clr_mapped() argument
711 static inline int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq, in kvmppc_xive_set_irq() argument