diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2013-02-07 05:50:18 -0500 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2013-06-12 11:42:16 -0400 |
commit | 06c7654d2fb8bac7b1af4340ad59434a5d89b86a (patch) | |
tree | d25e9139c864ac22d96e84feae9b759f6083856d /arch/arm64 | |
parent | 62a89c44954f09072bf07a714c8f68bda14ab87e (diff) |
arm64: KVM: CPU specific 32bit coprocessor access
Enable handling of CPU specific 32bit coprocessor access. Not much
here either.
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')
-rw-r--r-- | arch/arm64/kvm/sys_regs_generic_v8.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm64/kvm/sys_regs_generic_v8.c b/arch/arm64/kvm/sys_regs_generic_v8.c index d4e803907312..4268ab9356b1 100644 --- a/arch/arm64/kvm/sys_regs_generic_v8.c +++ b/arch/arm64/kvm/sys_regs_generic_v8.c | |||
@@ -59,11 +59,21 @@ static const struct sys_reg_desc genericv8_sys_regs[] = { | |||
59 | access_actlr, reset_actlr, ACTLR_EL1 }, | 59 | access_actlr, reset_actlr, ACTLR_EL1 }, |
60 | }; | 60 | }; |
61 | 61 | ||
62 | static const struct sys_reg_desc genericv8_cp15_regs[] = { | ||
63 | /* ACTLR */ | ||
64 | { Op1(0b000), CRn(0b0001), CRm(0b0000), Op2(0b001), | ||
65 | access_actlr }, | ||
66 | }; | ||
67 | |||
62 | static struct kvm_sys_reg_target_table genericv8_target_table = { | 68 | static struct kvm_sys_reg_target_table genericv8_target_table = { |
63 | .table64 = { | 69 | .table64 = { |
64 | .table = genericv8_sys_regs, | 70 | .table = genericv8_sys_regs, |
65 | .num = ARRAY_SIZE(genericv8_sys_regs), | 71 | .num = ARRAY_SIZE(genericv8_sys_regs), |
66 | }, | 72 | }, |
73 | .table32 = { | ||
74 | .table = genericv8_cp15_regs, | ||
75 | .num = ARRAY_SIZE(genericv8_cp15_regs), | ||
76 | }, | ||
67 | }; | 77 | }; |
68 | 78 | ||
69 | static int __init sys_reg_genericv8_init(void) | 79 | static int __init sys_reg_genericv8_init(void) |