Re: [PATCH] arm64: KVM: Register CPU notifiers when the kernel runs at HYP

2016-03-30 Thread James Morse
On 30/03/16 17:30, Marc Zyngier wrote: >> diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c >> index 6accd66d26f0..cf0184edf4f5 100644 >> --- a/arch/arm/kvm/arm.c >> +++ b/arch/arm/kvm/arm.c >> @@ -1084,9 +1092,13 @@ static int hyp_init_cpu_pm_notifier(struct >> notifier_block *self, >>

Re: [PATCH] arm64: KVM: Register CPU notifiers when the kernel runs at HYP

2016-03-30 Thread Marc Zyngier
Hi James, On 30/03/16 16:56, James Morse wrote: > 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. > >

[PATCH] arm64: KVM: Register CPU notifiers when the kernel runs at HYP

2016-03-30 Thread James Morse
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 tran