|
@@ -19,6 +19,8 @@
|
|
|
#ifndef __ARM_KVM_HOST_H__
|
|
|
#define __ARM_KVM_HOST_H__
|
|
|
|
|
|
+#include <linux/types.h>
|
|
|
+#include <linux/kvm_types.h>
|
|
|
#include <asm/kvm.h>
|
|
|
#include <asm/kvm_asm.h>
|
|
|
#include <asm/kvm_mmio.h>
|
|
@@ -40,7 +42,6 @@
|
|
|
|
|
|
#include <kvm/arm_vgic.h>
|
|
|
|
|
|
-struct kvm_vcpu;
|
|
|
u32 *kvm_vcpu_reg(struct kvm_vcpu *vcpu, u8 reg_num, u32 mode);
|
|
|
int kvm_target_cpu(void);
|
|
|
int kvm_reset_vcpu(struct kvm_vcpu *vcpu);
|
|
@@ -149,20 +150,17 @@ struct kvm_vcpu_stat {
|
|
|
u32 halt_wakeup;
|
|
|
};
|
|
|
|
|
|
-struct kvm_vcpu_init;
|
|
|
int kvm_vcpu_set_target(struct kvm_vcpu *vcpu,
|
|
|
const struct kvm_vcpu_init *init);
|
|
|
int kvm_vcpu_preferred_target(struct kvm_vcpu_init *init);
|
|
|
unsigned long kvm_arm_num_regs(struct kvm_vcpu *vcpu);
|
|
|
int kvm_arm_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *indices);
|
|
|
-struct kvm_one_reg;
|
|
|
int kvm_arm_get_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg);
|
|
|
int kvm_arm_set_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg);
|
|
|
u64 kvm_call_hyp(void *hypfn, ...);
|
|
|
void force_vm_exit(const cpumask_t *mask);
|
|
|
|
|
|
#define KVM_ARCH_WANT_MMU_NOTIFIER
|
|
|
-struct kvm;
|
|
|
int kvm_unmap_hva(struct kvm *kvm, unsigned long hva);
|
|
|
int kvm_unmap_hva_range(struct kvm *kvm,
|
|
|
unsigned long start, unsigned long end);
|
|
@@ -187,7 +185,6 @@ struct kvm_vcpu __percpu **kvm_get_running_vcpus(void);
|
|
|
|
|
|
int kvm_arm_copy_coproc_indices(struct kvm_vcpu *vcpu, u64 __user *uindices);
|
|
|
unsigned long kvm_arm_num_coproc_regs(struct kvm_vcpu *vcpu);
|
|
|
-struct kvm_one_reg;
|
|
|
int kvm_arm_coproc_get_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *);
|
|
|
int kvm_arm_coproc_set_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *);
|
|
|
|