]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: trap VM system registers until MMU and caches are ON
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 14 Jan 2014 18:00:55 +0000 (18:00 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Mar 2014 01:15:21 +0000 (01:15 +0000)
commit15d8fa60c086f91ce23468e4b3e74c7242033b9b
tree47a84336cf900f8cefbfa66785664a950aa36ec3
parent10e9d1e9ffa2d36992a0d61a31cc4b60d6578e73
arm64: 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>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/include/asm/kvm_asm.h
arch/arm64/kvm/sys_regs.c