KVM: arm64: Declutter host PSCI 0.1 handling
authorMarc Zyngier <maz@kernel.org>
Tue, 22 Dec 2020 12:46:41 +0000 (12:46 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 22 Dec 2020 12:56:44 +0000 (12:56 +0000)
commit767c973f2e4a9264a4f159c9fad5ca8acdb9915e
tree635addaa0a5ec0a94d732ec19930ae63b09055ed
parent860a4c3d1e04a3c3e62bacbbba64417bf49768e2
KVM: arm64: Declutter host PSCI 0.1 handling

Although there is nothing wrong with the current host PSCI relay
implementation, we can clean it up and remove some of the helpers
that do not improve the overall readability of the legacy PSCI 0.1
handling.

Opportunity is taken to turn the bitmap into a set of booleans,
and creative use of preprocessor macros make init and check
more concise/readable.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/nvhe/psci-relay.c