]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: re-factor hyp.S debug register code
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 7 Jul 2015 16:29:59 +0000 (17:29 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 21 Jul 2015 11:47:08 +0000 (12:47 +0100)
commit66b06b2159e2959dbc4c316f85e810c6bc1cb895
treeea7d657f75973e262c02aefbfb519de18d41549f
parentc9dc2b46971ba176b6003517e465f6137c85b940
KVM: arm64: re-factor hyp.S debug register code

This is a pre-cursor to sharing the code with the guest debug support.
This replaces the big macro that fishes data out of a fixed location
with a more general helper macro to restore a set of debug registers. It
uses macro substitution so it can be re-used for debug control and value
registers. It does however rely on the debug registers being 64 bit
aligned (as they happen to be in the hyp ABI).

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp.S