]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
KVM: arm64: Move userspace system registers into separate function
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 15 Mar 2016 20:41:55 +0000 (21:41 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:14 +0000 (10:53 +0000)
commit060701f04ace30d79ee76143d37beb4fb754c3e7
treebaba660e5ec5153faa9d66a27feef55fc78b1f88
parent04fef057003c207ff4d9f22d2127aee2f9abecd0
KVM: arm64: Move userspace system registers into separate function

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.

The ARMv8 ARM (ARM DDI 0487C.a) Section D10.2.1 recommends that
ACTLR_EL1 has no effect on the processor when running the VHE host, and
we can therefore move this register into the EL1 state which is only
saved/restored on vcpu_put/load for a VHE host.

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 <drjones@redhat.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/sysreg-sr.c