Re: [Xen-devel] [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Stefano Stabellini
On Tue, 28 Jan 2014, Julien Grall wrote: > On 01/28/2014 05:46 PM, Stefano Stabellini wrote: > > On Tue, 28 Jan 2014, Julien Grall wrote: > +static int xen_cpu_notification(struct notifier_block *self, > +unsigned long action, > +

Re: [Xen-devel] [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Julien Grall
On 01/28/2014 05:46 PM, Stefano Stabellini wrote: > On Tue, 28 Jan 2014, Julien Grall wrote: +static int xen_cpu_notification(struct notifier_block *self, + unsigned long action, + void *hcpu) +{ + int cpu = (long)hcpu;

Re: [Xen-devel] [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Stefano Stabellini
On Tue, 28 Jan 2014, Julien Grall wrote: > >> +static int xen_cpu_notification(struct notifier_block *self, > >> + unsigned long action, > >> + void *hcpu) > >> +{ > >> + int cpu = (long)hcpu; > >> + > >> + switch (action) { > >> + case

Re: [Xen-devel] [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Julien Grall
On 01/28/2014 05:13 PM, Stefano Stabellini wrote: > On Tue, 28 Jan 2014, Julien Grall wrote: >> Event channels driver needs to be initialized very early. Until now, Xen >> initialization was done after all CPUs was bring up. >> >> We can safely move the initialization to an early initcall. >> >>

Re: [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Stefano Stabellini
On Tue, 28 Jan 2014, Julien Grall wrote: > Event channels driver needs to be initialized very early. Until now, Xen > initialization was done after all CPUs was bring up. > > We can safely move the initialization to an early initcall. > > Also use a cpu notifier to: > - Register the VCPU

[PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Julien Grall
Event channels driver needs to be initialized very early. Until now, Xen initialization was done after all CPUs was bring up. We can safely move the initialization to an early initcall. Also use a cpu notifier to: - Register the VCPU when the CPU is prepared - Enable event channel IRQ

[PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Julien Grall
Event channels driver needs to be initialized very early. Until now, Xen initialization was done after all CPUs was bring up. We can safely move the initialization to an early initcall. Also use a cpu notifier to: - Register the VCPU when the CPU is prepared - Enable event channel IRQ

Re: [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Stefano Stabellini
On Tue, 28 Jan 2014, Julien Grall wrote: Event channels driver needs to be initialized very early. Until now, Xen initialization was done after all CPUs was bring up. We can safely move the initialization to an early initcall. Also use a cpu notifier to: - Register the VCPU when the

Re: [Xen-devel] [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Julien Grall
On 01/28/2014 05:13 PM, Stefano Stabellini wrote: On Tue, 28 Jan 2014, Julien Grall wrote: Event channels driver needs to be initialized very early. Until now, Xen initialization was done after all CPUs was bring up. We can safely move the initialization to an early initcall. Also use a cpu

Re: [Xen-devel] [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Stefano Stabellini
On Tue, 28 Jan 2014, Julien Grall wrote: +static int xen_cpu_notification(struct notifier_block *self, + unsigned long action, + void *hcpu) +{ + int cpu = (long)hcpu; + + switch (action) { + case CPU_UP_PREPARE: +

Re: [Xen-devel] [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Julien Grall
On 01/28/2014 05:46 PM, Stefano Stabellini wrote: On Tue, 28 Jan 2014, Julien Grall wrote: +static int xen_cpu_notification(struct notifier_block *self, + unsigned long action, + void *hcpu) +{ + int cpu = (long)hcpu; + + switch (action)

Re: [Xen-devel] [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Stefano Stabellini
On Tue, 28 Jan 2014, Julien Grall wrote: On 01/28/2014 05:46 PM, Stefano Stabellini wrote: On Tue, 28 Jan 2014, Julien Grall wrote: +static int xen_cpu_notification(struct notifier_block *self, +unsigned long action, +void