arm64: KVM: add trap handlers for AArch64 debug registers
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 24 Apr 2014 09:24:46 +0000 (10:24 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:19:02 +0000 (17:19 +0200)
commitad4686e6b3c82d7cf3f79853cc12f655ce444668
tree0187e776bc1334f7ed58f459f551397fa7601435
parentefacbc423cf057a9051ca0fd240e68f5596700e7
arm64: KVM: add trap handlers for AArch64 debug registers

Add handlers for all the AArch64 debug registers that are accessible
from EL0 or EL1. The trapping code keeps track of the state of the
debug registers, allowing for the switch code to implement a lazy
switching strategy.

Reviewed-by: Anup Patel <anup.patel@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit 0c557ed4983b7abe152212b5b1726c2a789b2c61)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/include/asm/kvm_asm.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/sys_regs.c