diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2015-07-07 17:30:00 +0100 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2016-05-24 14:53:12 +0800 |
commit | 9ca83089276eab480bb42e7e45de1d3a848c93e7 (patch) | |
tree | f532fcf989583d2af92bc29217aa808f62057e73 /arch/arm64/include/uapi | |
parent | cdd2cae458c1675e151437af198add294d92e9d1 (diff) |
KVM: arm64: introduce vcpu->arch.debug_ptr
This introduces a level of indirection for the debug registers. Instead
of using the sys_regs[] directly we store registers in a structure in
the vcpu. The new kvm_arm_reset_debug_ptr() sets the debug ptr to the
guest context.
Because we no longer give the sys_regs offset for the sys_reg_desc->reg
field, but instead the index into a debug-specific struct we need to
add a number of additional trap functions for each register. Also as the
generic generic user-space access code no longer works we have
introduced a new pair of function pointers to the sys_reg_desc structure
to override the generic code when needed.
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit 84e690bfbed1d1ecb45d8eccd4c7b6c8e878da1c)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'arch/arm64/include/uapi')
0 files changed, 0 insertions, 0 deletions