diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2013-02-06 19:17:50 +0000 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2013-06-12 16:42:13 +0100 |
commit | 40033a614ea3db196d57c477ca328f44eb1e4df0 (patch) | |
tree | 17940bdb90c5fb309febb96bdaf8d44b07d87259 /arch/arm64/include/asm/kvm_host.h | |
parent | 6211753fdfd05af9e08f54c8d0ba3ee516034878 (diff) | |
download | op-kernel-dev-40033a614ea3db196d57c477ca328f44eb1e4df0.zip op-kernel-dev-40033a614ea3db196d57c477ca328f44eb1e4df0.tar.gz |
arm64: KVM: define 32bit specific registers
Define the 32bit specific registers (SPSRs, cp15...).
Most CPU registers are directly mapped to a 64bit register
(r0->x0...). Only the SPSRs have separate registers.
cp15 registers are also mapped into their 64bit counterpart in most
cases.
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_host.h')
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 2fdeb32..3f5830b 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -84,7 +84,10 @@ struct kvm_vcpu_fault_info { struct kvm_cpu_context { struct kvm_regs gp_regs; - u64 sys_regs[NR_SYS_REGS]; + union { + u64 sys_regs[NR_SYS_REGS]; + u32 cp15[NR_CP15_REGS]; + }; }; typedef struct kvm_cpu_context kvm_cpu_context_t; |