Re: [v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-15 Thread Mark Rutland
> > What I don't understand is why we can't move the init and tear-down > > functions into kvm_arch_hardware_enable/disable(). They seem to be for > > precisely what you are implementing, with the only difference being the > > time that they are called. > > I don't know, neither. I just followed

Re: [v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-15 Thread Mark Rutland
What I don't understand is why we can't move the init and tear-down functions into kvm_arch_hardware_enable/disable(). They seem to be for precisely what you are implementing, with the only difference being the time that they are called. I don't know, neither. I just followed the

Re: [v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-09 Thread Mark Rutland
On Thu, Apr 09, 2015 at 05:53:33AM +0100, AKASHI Takahiro wrote: > Mark, > > On 04/08/2015 10:05 PM, Mark Rutland wrote: > > On Thu, Apr 02, 2015 at 06:40:13AM +0100, AKASHI Takahiro wrote: > >> The current kvm implementation keeps EL2 vector table installed even > >> when the system is shut

Re: [v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-09 Thread Mark Rutland
On Thu, Apr 09, 2015 at 05:53:33AM +0100, AKASHI Takahiro wrote: Mark, On 04/08/2015 10:05 PM, Mark Rutland wrote: On Thu, Apr 02, 2015 at 06:40:13AM +0100, AKASHI Takahiro wrote: The current kvm implementation keeps EL2 vector table installed even when the system is shut down. This

Re: [v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-08 Thread AKASHI Takahiro
Mark, On 04/08/2015 10:05 PM, Mark Rutland wrote: On Thu, Apr 02, 2015 at 06:40:13AM +0100, AKASHI Takahiro wrote: The current kvm implementation keeps EL2 vector table installed even when the system is shut down. This prevents kexec from putting the system with kvm back into EL2 when starting

Re: [v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-08 Thread Mark Rutland
On Thu, Apr 02, 2015 at 06:40:13AM +0100, AKASHI Takahiro wrote: > The current kvm implementation keeps EL2 vector table installed even > when the system is shut down. This prevents kexec from putting the system > with kvm back into EL2 when starting a new kernel. > > This patch resolves this

Re: [v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-08 Thread Mark Rutland
On Thu, Apr 02, 2015 at 06:40:13AM +0100, AKASHI Takahiro wrote: The current kvm implementation keeps EL2 vector table installed even when the system is shut down. This prevents kexec from putting the system with kvm back into EL2 when starting a new kernel. This patch resolves this issue by

Re: [v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-08 Thread AKASHI Takahiro
Mark, On 04/08/2015 10:05 PM, Mark Rutland wrote: On Thu, Apr 02, 2015 at 06:40:13AM +0100, AKASHI Takahiro wrote: The current kvm implementation keeps EL2 vector table installed even when the system is shut down. This prevents kexec from putting the system with kvm back into EL2 when starting

[v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-01 Thread AKASHI Takahiro
The current kvm implementation keeps EL2 vector table installed even when the system is shut down. This prevents kexec from putting the system with kvm back into EL2 when starting a new kernel. This patch resolves this issue by calling a cpu tear-down function via reboot notifier,

[v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-01 Thread AKASHI Takahiro
The current kvm implementation keeps EL2 vector table installed even when the system is shut down. This prevents kexec from putting the system with kvm back into EL2 when starting a new kernel. This patch resolves this issue by calling a cpu tear-down function via reboot notifier,