diff options
author | James Morse <james.morse@arm.com> | 2016-03-30 18:33:04 +0100 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2016-03-31 10:27:28 +0200 |
commit | 5f5560b1c5f3a80e91c6babb2da34a51943bbdec (patch) | |
tree | ee1161f6938722bf368979a8dfb73e1a5347b270 /virt | |
parent | cb678d6016510cc8c6572dd9f426fe74dd4eda84 (diff) | |
download | linux-5f5560b1c5f3a80e91c6babb2da34a51943bbdec.tar.gz linux-5f5560b1c5f3a80e91c6babb2da34a51943bbdec.tar.bz2 linux-5f5560b1c5f3a80e91c6babb2da34a51943bbdec.zip |
arm64: KVM: Register CPU notifiers when the kernel runs at HYP
When the kernel is running at EL2, it doesn't need init_hyp_mode() to
configure page tables for HYP. This function also registers the CPU
hotplug and lower power notifiers that cause HYP to be re-initialised
after the CPU has been reset.
To avoid losing the register state that controls stage2 translation, move
the registering of these notifiers into init_subsystems(), and add a
is_kernel_in_hyp_mode() path to each callback.
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Fixes: 1e947bad0b6 ("arm64: KVM: Skip HYP setup when already running in HYP")
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions