Lines Matching refs:kvm
131 extern struct kvm_vcpu *kvmppc_core_vcpu_create(struct kvm *kvm,
172 extern void kvmppc_set_hpt(struct kvm *kvm, struct kvm_hpt_info *info);
173 extern long kvmppc_alloc_reset_hpt(struct kvm *kvm, int order);
175 extern void kvmppc_rmap_reset(struct kvm *kvm);
176 extern long kvmppc_prepare_vrma(struct kvm *kvm,
181 extern long kvm_spapr_tce_attach_iommu_group(struct kvm *kvm, int tablefd,
183 extern void kvm_spapr_tce_release_iommu_group(struct kvm *kvm,
185 extern int kvmppc_switch_mmu_to_hpt(struct kvm *kvm);
186 extern int kvmppc_switch_mmu_to_radix(struct kvm *kvm);
187 extern void kvmppc_setup_partition_table(struct kvm *kvm);
189 extern long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
192 struct kvm *kvm, unsigned long liobn);
199 extern long kvmppc_gpa_to_ua(struct kvm *kvm, unsigned long gpa,
215 extern int kvmppc_core_init_vm(struct kvm *kvm);
216 extern void kvmppc_core_destroy_vm(struct kvm *kvm);
217 extern void kvmppc_core_free_memslot(struct kvm *kvm,
220 extern int kvmppc_core_create_memslot(struct kvm *kvm,
223 extern int kvmppc_core_prepare_memory_region(struct kvm *kvm,
226 extern void kvmppc_core_commit_memory_region(struct kvm *kvm,
230 extern int kvm_vm_ioctl_get_smmu_info(struct kvm *kvm,
232 extern void kvmppc_core_flush_memslot(struct kvm *kvm,
240 extern int kvm_vm_ioctl_get_htab_fd(struct kvm *kvm, struct kvm_get_htab_fd *);
241 extern long kvm_vm_ioctl_resize_hpt_prepare(struct kvm *kvm,
243 extern long kvm_vm_ioctl_resize_hpt_commit(struct kvm *kvm,
248 extern int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp);
250 extern void kvmppc_rtas_tokens_free(struct kvm *kvm);
252 extern int kvmppc_xics_set_xive(struct kvm *kvm, u32 irq, u32 server,
254 extern int kvmppc_xics_get_xive(struct kvm *kvm, u32 irq, u32 *server,
256 extern int kvmppc_xics_int_on(struct kvm *kvm, u32 irq);
257 extern int kvmppc_xics_int_off(struct kvm *kvm, u32 irq);
288 struct kvm_vcpu *(*vcpu_create)(struct kvm *kvm, unsigned int id);
291 int (*get_dirty_log)(struct kvm *kvm, struct kvm_dirty_log *log);
292 void (*flush_memslot)(struct kvm *kvm, struct kvm_memory_slot *memslot);
293 int (*prepare_memory_region)(struct kvm *kvm,
296 void (*commit_memory_region)(struct kvm *kvm,
300 int (*unmap_hva_range)(struct kvm *kvm, unsigned long start,
302 int (*age_hva)(struct kvm *kvm, unsigned long start, unsigned long end);
303 int (*test_age_hva)(struct kvm *kvm, unsigned long hva);
304 void (*set_spte_hva)(struct kvm *kvm, unsigned long hva, pte_t pte);
310 int (*init_vm)(struct kvm *kvm);
311 void (*destroy_vm)(struct kvm *kvm);
312 int (*get_smmu_info)(struct kvm *kvm, struct kvm_ppc_smmu_info *info);
325 int (*configure_mmu)(struct kvm *kvm, struct kvm_ppc_mmuv3_cfg *cfg);
326 int (*get_rmmu_info)(struct kvm *kvm, struct kvm_ppc_rmmu_info *info);
327 int (*set_smt_mode)(struct kvm *kvm, unsigned long mode,
358 static inline bool is_kvmppc_hv_enabled(struct kvm *kvm) in is_kvmppc_hv_enabled() argument
360 return kvm->arch.kvm_ops == kvmppc_hv_ops; in is_kvmppc_hv_enabled()
468 vcpu->kvm->arch.kvm_ops->fast_vcpu_kick(vcpu); in kvmppc_fast_vcpu_kick()
511 struct kvm *kvm) in kvmppc_get_passthru_irqmap() argument
513 if (kvm && kvm_irq_bypass) in kvmppc_get_passthru_irqmap()
514 return kvm->arch.pimap; in kvmppc_get_passthru_irqmap()
520 extern void kvmppc_free_pimap(struct kvm *kvm);
529 extern void kvmppc_xics_set_mapped(struct kvm *kvm, unsigned long guest_irq,
531 extern void kvmppc_xics_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
538 extern int kvmppc_xics_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
544 struct kvm *kvm) in kvmppc_get_passthru_irqmap() argument
548 static inline void kvmppc_free_pimap(struct kvm *kvm) {}; in kvmppc_free_pimap() argument
567 extern int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server,
569 extern int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server,
571 extern int kvmppc_xive_int_on(struct kvm *kvm, u32 irq);
572 extern int kvmppc_xive_int_off(struct kvm *kvm, u32 irq);
579 extern int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq,
581 extern int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq,
586 extern int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq,
589 static inline int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server, in kvmppc_xive_set_xive() argument
591 static inline int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server, in kvmppc_xive_get_xive() argument
593 static inline int kvmppc_xive_int_on(struct kvm *kvm, u32 irq) { return -1; } in kvmppc_xive_int_on() argument
594 static inline int kvmppc_xive_int_off(struct kvm *kvm, u32 irq) { return -1; } in kvmppc_xive_int_off() argument
601 static inline int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq, in kvmppc_xive_set_mapped() argument
603 static inline int kvmppc_xive_clr_mapped(struct kvm *kvm, unsigned long guest_irq, in kvmppc_xive_clr_mapped() argument
608 static inline int kvmppc_xive_set_irq(struct kvm *kvm, int irq_source_id, u32 irq, in kvmppc_xive_set_irq() argument