]> 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)
commit5017ced6f8d2b136967067384151a76906408d9f
treec6492219b1c59c488ca9e4191cb9d854e11b87b4
parentd31ef004020571207dafab24fe3b00ace32273ba
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