Skip to content
Commit bb44a8db authored by Marc Zyngier's avatar Marc Zyngier
Browse files

KVM: arm64: Move sysreg reset check to boot time



Our sysreg reset check has become a bit silly, as it only checks whether
a reset callback actually exists for a given sysreg entry, and apply the
method if available. Doing the check at each vcpu reset is pretty dumb,
as the tables never change. It is thus perfectly possible to do the same
checks at boot time.

This also allows us to introduce a sparse sys_regs[] array, something
that will be required with ARMv8.4-NV.

Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent 7ccadf23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment