KVM: arm64: Stop save/restoring ACTLR_EL1
authorJames Morse <james.morse@arm.com>
Fri, 29 May 2020 15:06:56 +0000 (15:06 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 9 Jun 2020 08:07:58 +0000 (09:07 +0100)
commite8679fedd026eb3b4655af83829d9036e32c9b97
tree23e284ad77500de7a398a9d1a5fb8c2d59b6cc34
parentef5a294be8d0e17b91d23be905f69368b0d3952e
KVM: arm64: Stop save/restoring ACTLR_EL1

KVM sets HCR_EL2.TACR via HCR_GUEST_FLAGS. This means ACTLR* accesses
from the guest are always trapped, and always return the value in the
sys_regs array.

The guest can't change the value of these registers, so we are
save restoring the reset value, which came from the host.

Stop save/restoring this register. Keep the storage for this register
in sys_regs[] as this is how the value is exposed to user-space,
removing it would break migration.

Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200529150656.7339-4-james.morse@arm.com
arch/arm64/kvm/hyp/sysreg-sr.c
arch/arm64/kvm/sys_regs.c