summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/kvm_coproc.h
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2013-02-07 10:32:33 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2013-06-12 16:42:16 +0100
commit62a89c44954f09072bf07a714c8f68bda14ab87e (patch)
treef4172257cdaeeac859d71fc30f2a2b483fb7b375 /arch/arm64/include/asm/kvm_coproc.h
parent27b190bd9fbfee34536cb858f0b5924d294aac38 (diff)
downloadtalos-op-linux-62a89c44954f09072bf07a714c8f68bda14ab87e.tar.gz
talos-op-linux-62a89c44954f09072bf07a714c8f68bda14ab87e.zip
arm64: KVM: 32bit handling of coprocessor traps
Provide the necessary infrastructure to trap coprocessor accesses that occur when running 32bit guests. Also wire SMC and HVC trapped in 32bit mode while were at it. Reviewed-by: Christopher Covington <cov@codeaurora.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/kvm_coproc.h')
-rw-r--r--arch/arm64/include/asm/kvm_coproc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_coproc.h b/arch/arm64/include/asm/kvm_coproc.h
index 9b4477acb554..9a59301cd014 100644
--- a/arch/arm64/include/asm/kvm_coproc.h
+++ b/arch/arm64/include/asm/kvm_coproc.h
@@ -32,11 +32,16 @@ struct kvm_sys_reg_table {
struct kvm_sys_reg_target_table {
struct kvm_sys_reg_table table64;
+ struct kvm_sys_reg_table table32;
};
void kvm_register_target_sys_reg_table(unsigned int target,
struct kvm_sys_reg_target_table *table);
+int kvm_handle_cp14_load_store(struct kvm_vcpu *vcpu, struct kvm_run *run);
+int kvm_handle_cp14_access(struct kvm_vcpu *vcpu, struct kvm_run *run);
+int kvm_handle_cp15_32(struct kvm_vcpu *vcpu, struct kvm_run *run);
+int kvm_handle_cp15_64(struct kvm_vcpu *vcpu, struct kvm_run *run);
int kvm_handle_sys_reg(struct kvm_vcpu *vcpu, struct kvm_run *run);
#define kvm_coproc_table_init kvm_sys_reg_table_init
OpenPOWER on IntegriCloud