summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2014-04-24 10:24:46 +0100
committerChristoffer Dall <christoffer.dall@linaro.org>2014-07-11 04:57:44 -0700
commit0c557ed4983b7abe152212b5b1726c2a789b2c61 (patch)
treed7b3fe7a81d323f6c571828f78e09228cc6d499b /arch/arm64/include/asm/kvm_host.h
parent51ba248164d0eeb8b4f94d405430c18a56c6ac9a (diff)
downloadtalos-obmc-linux-0c557ed4983b7abe152212b5b1726c2a789b2c61.tar.gz
talos-obmc-linux-0c557ed4983b7abe152212b5b1726c2a789b2c61.zip
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>
Diffstat (limited to 'arch/arm64/include/asm/kvm_host.h')
-rw-r--r--arch/arm64/include/asm/kvm_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
index 503c70661636..8e410f761918 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -101,6 +101,9 @@ struct kvm_vcpu_arch {
/* Exception Information */
struct kvm_vcpu_fault_info fault;
+ /* Debug state */
+ u64 debug_flags;
+
/* Pointer to host CPU context */
kvm_cpu_context_t *host_cpu_context;
OpenPOWER on IntegriCloud