]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Fri, 11 Jul 2014 11:57:44 +0000 (04:57 -0700)
commit6fcc266dcd1c723945428d44067bd8f81ccfce43
treed7b3fe7a81d323f6c571828f78e09228cc6d499b
parent3245765b8cf0740de894906f59fab4957aa3dfb5
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>
arch/arm64/include/asm/kvm_asm.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/sys_regs.c