]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Move sysreg reset check to boot time
authorMarc Zyngier <maz@kernel.org>
Mon, 27 Jan 2020 11:21:17 +0000 (11:21 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 28 May 2020 10:57:10 +0000 (11:57 +0100)
commita9b6265abd59d2d0bfc226b57b497c295ec63d5c
treedd13aea8f52802190ad89a542b5afdf88ebc5f71
parent19c8930c5aec6301ea2856db9b24a2fb09218797
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: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c