]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Add function to enter host from KVM nVHE hyp code
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:41:16 +0000 (18:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 10:08:35 +0000 (10:08 +0000)
commit11dbc3d5f6ca4d3fb31b2f3bf02fd7048ffbb493
treec6492219b1c59c488ca9e4191cb9d854e11b87b4
parent3a9bcffad023d50af87cc0e11f213d043af90661
KVM: arm64: Add function to enter host from KVM nVHE hyp code

All nVHE hyp code is currently executed as handlers of host's HVCs. This
will change as nVHE starts intercepting host's PSCI CPU_ON SMCs. The
newly booted CPU will need to initialize EL2 state and then enter the
host. Add __host_enter function that branches into the existing
host state-restoring code after the trap handler would have returned.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201202184122.26046-21-dbrazdil@google.com
arch/arm64/kvm/hyp/nvhe/host.S