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

2016-03-31 Thread Christoffer Dall
On Wed, Mar 30, 2016 at 06:33:04PM +0100, 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

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

2016-03-31 Thread Marc Zyngier
On 30/03/16 18:33, 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. > > To avoid l

[PATCH v2] 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