Thread (138 messages) 138 messages, 4 authors, 2018-02-25
STALE3029d REVIEWED: 1 (0M)

[PATCH v4 17/40] KVM: arm64: Move userspace system registers into separate function

From: Marc Zyngier <hidden>
Date: 2018-02-21 12:21:11
Also in: kvm, kvmarm

On Thu, 15 Feb 2018 21:03:09 +0000,
Christoffer Dall wrote:
There's a semantic difference between the EL1 registers that control
operation of a kernel running in EL1 and EL1 registers that only control
userspace execution in EL0.  Since we can defer saving/restoring the
latter, move them into their own function.

ACTLR_EL1 is not used by a VHE host, so we can move this register into
the EL1 state which is not saved/restored for a VHE host.
Nit: maybe worth adding a reference to the D10.2.1 comment in the
ARMv8 ARM that indicates the "recommended" behaviour of this register?
We also take this chance to rename the function saving/restoring the
remaining system register to make it clear this function deals with
the EL1 system registers.

Reviewed-by: Andrew Jones <redacted>
Signed-off-by: Christoffer Dall <redacted>
Reviewed-by: Marc Zyngier <redacted>

	M.

-- 
Jazz is not dead, it just smell funny.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help