diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2014-01-14 18:00:55 +0000 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2014-03-03 01:15:24 +0000 |
commit | 8034699a42d68043b495c7e0cfafccd920707ec8 (patch) | |
tree | 25fbae0371d43ca1a2edd7f876e6c80b5ccbec29 /arch/arm/kvm/coproc_a7.c | |
parent | af20814ee927ed888288d98917a766b4179c4fe0 (diff) | |
download | linux-8034699a42d68043b495c7e0cfafccd920707ec8.tar.bz2 |
ARM: KVM: trap VM system registers until MMU and caches are ON
In order to be able to detect the point where the guest enables
its MMU and caches, trap all the VM related system registers.
Once we see the guest enabling both the MMU and the caches, we
can go back to a saner mode of operation, which is to leave these
registers in complete control of the guest.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'arch/arm/kvm/coproc_a7.c')
-rw-r--r-- | arch/arm/kvm/coproc_a7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kvm/coproc_a7.c b/arch/arm/kvm/coproc_a7.c index 1df767331588..17fc7cd479d3 100644 --- a/arch/arm/kvm/coproc_a7.c +++ b/arch/arm/kvm/coproc_a7.c @@ -37,7 +37,7 @@ static const struct coproc_reg a7_regs[] = { /* SCTLR: swapped by interrupt.S. */ { CRn( 1), CRm( 0), Op1( 0), Op2( 0), is32, - NULL, reset_val, c1_SCTLR, 0x00C50878 }, + access_sctlr, reset_val, c1_SCTLR, 0x00C50878 }, }; static struct kvm_coproc_target_table a7_target_table = { |