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

[PATCH v4 25/40] KVM: arm64: Introduce framework for accessing deferred sysregs

From: Marc Zyngier <hidden>
Date: 2018-02-21 14:16:36
Also in: kvm, kvmarm

On Thu, 15 Feb 2018 21:03:17 +0000,
Christoffer Dall wrote:
We are about to defer saving and restoring some groups of system
registers to vcpu_put and vcpu_load on supported systems.  This means
that we need some infrastructure to access system registes which
supports either accessing the memory backing of the register or directly
accessing the system registers, depending on the state of the system
when we access the register.

We do this by defining read/write accessor functions, which can handle
both "immediate" and "deferrable" system registers.  Immediate registers
are always saved/restored in the world-switch path, but deferrable
registers are only saved/restored in vcpu_put/vcpu_load when supported
and sysregs_loaded_on_cpu will be set in that case.

Note that we don't use the deferred mechanism yet in this patch, but only
introduce infrastructure.  This is to improve convenience of review in
the subsequent patches where it is clear which registers become
deferred.

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