diff options
author | Christoffer Dall <[email protected]> | 2017-12-13 22:56:48 +0100 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2018-03-19 10:53:11 +0000 |
commit | e72341c5126a70072a10585c45923dd55050ca79 (patch) | |
tree | c7058585ee14d447e5e8cede1d9075364ce90050 /arch/arm64/kvm/debug.c | |
parent | bc192ceec37108bf6c04a5c5795fcea5f940b0de (diff) |
KVM: arm/arm64: Introduce vcpu_el1_is_32bit
We have numerous checks around that checks if the HCR_EL2 has the RW bit
set to figure out if we're running an AArch64 or AArch32 VM. In some
cases, directly checking the RW bit (given its unintuitive name), is a
bit confusing, and that's not going to improve as we move logic around
for the following patches that optimize KVM on AArch64 hosts with VHE.
Therefore, introduce a helper, vcpu_el1_is_32bit, and replace existing
direct checks of HCR_EL2.RW with the helper.
Reviewed-by: Julien Grall <[email protected]>
Reviewed-by: Julien Thierry <[email protected]>
Acked-by: Marc Zyngier <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'arch/arm64/kvm/debug.c')
0 files changed, 0 insertions, 0 deletions