Thread (112 messages) 112 messages, 10 authors, 2018-02-19
STALE3028d REVIEWED: 1 (0M)

[PATCH v3 08/41] KVM: arm/arm64: Introduce vcpu_el1_is_32bit

From: Julien Grall <hidden>
Date: 2018-02-09 12:31:25
Also in: kvm, kvmarm

Hi Christoffer,

On 01/12/2018 12:07 PM, Christoffer Dall wrote:
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.

Signed-off-by: Christoffer Dall <redacted>
Reviewed-by: Julien Grall <redacted>

Cheers,

-- 
Julien Grall
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help