]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c39bce8b41376b17d08b543efe09a72e6d62c76
tree635addaa0a5ec0a94d732ec19930ae63b09055ed
parent2d703d5e9028146b9ad881d523b390d85ac1805a
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