commit | f8cfbce1bb85984d2601a18e8f21dacc1b79dce3 | [log] [tgz] |
---|---|---|
author | Marc Zyngier <marc.zyngier@arm.com> | Tue Feb 09 17:09:49 2016 +0000 |
committer | Marc Zyngier <marc.zyngier@arm.com> | Wed Mar 09 04:22:24 2016 +0000 |
tree | 82a1d4ace25eb2bc717f35e7015a52cfc842079b | |
parent | 2a1044f8b7bfd99296774f5f90abf8f96013a997 [diff] |
KVM: arm/arm64: vgic-v2: Do not save an LR known to be empty On exit, any empty LR will be signaled in GICH_ELRSR*. Which means that we do not have to save it, and we can just clear its state in the in-memory copy. Take this opportunity to move the LR saving code into its own function. Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>