]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Factor out hypercall handling from PSCI code
authorChristoffer Dall <christoffer.dall@arm.com>
Mon, 21 Oct 2019 15:28:15 +0000 (16:28 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 21 Oct 2019 18:20:26 +0000 (19:20 +0100)
commit50e12a502d9127287209eebe2f3fc3e9a6fbdc1b
tree9fc811613d56b7b37c97e57955988003b2da1ce7
parent107554ffd90494410f5441a6810c7da7d30b7195
KVM: arm/arm64: Factor out hypercall handling from PSCI code

We currently intertwine the KVM PSCI implementation with the general
dispatch of hypercall handling, which makes perfect sense because PSCI
is the only category of hypercalls we support.

However, as we are about to support additional hypercalls, factor out
this functionality into a separate hypercall handler file.

Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
[steven.price@arm.com: rebased]
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm/kvm/Makefile
arch/arm/kvm/handle_exit.c
arch/arm64/kvm/Makefile
arch/arm64/kvm/handle_exit.c
include/Kbuild
include/kvm/arm_hypercalls.h [new file with mode: 0644]
include/kvm/arm_psci.h
virt/kvm/arm/hypercalls.c [new file with mode: 0644]
virt/kvm/arm/psci.c