]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:15:02 +0000 (11:15 +0200)
commit6dc878f7eb7b59517518fd6d2b6a80978eda5aa1
tree7770cbd97deb75d482001318f18001f8f3e2faba
parentfc8ec36d4ae7b701fa473cb7686dc0afee71c050
arm64: KVM: trap VM system registers until MMU and caches are ON

commit 4d44923b17bff283c002ed961373848284aaff1b upstream.

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>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/include/asm/kvm_asm.h
arch/arm64/kvm/sys_regs.c