Re: [Xen-devel] [PATCH] setup vwfi correctly on cpu0

2017-04-03 Thread Stefano Stabellini
On Mon, 3 Apr 2017, Julien Grall wrote: > Hi Stefano, > > On 31/03/17 23:33, Stefano Stabellini wrote: > > On Fri, 31 Mar 2017, Julien Grall wrote: > > > Hi Stefano, > > > > > > On 03/30/2017 11:35 PM, Stefano Stabellini wrote: > > > > parse_vwfi runs after init_traps on cpu0, potentially resulti

Re: [Xen-devel] [PATCH] setup vwfi correctly on cpu0

2017-04-03 Thread Julien Grall
Hi Stefano, On 31/03/17 23:33, Stefano Stabellini wrote: On Fri, 31 Mar 2017, Julien Grall wrote: Hi Stefano, On 03/30/2017 11:35 PM, Stefano Stabellini wrote: parse_vwfi runs after init_traps on cpu0, potentially resulting in the wrong HCR_EL2 for it. Secondary cpus boot after parse_vwfi, so

Re: [Xen-devel] [PATCH] setup vwfi correctly on cpu0

2017-03-31 Thread Stefano Stabellini
On Fri, 31 Mar 2017, Julien Grall wrote: > Hi Stefano, > > On 03/30/2017 11:35 PM, Stefano Stabellini wrote: > > parse_vwfi runs after init_traps on cpu0, potentially resulting in the > > wrong HCR_EL2 for it. Secondary cpus boot after parse_vwfi, so in their > > case init_traps will write the cor

Re: [Xen-devel] [PATCH] setup vwfi correctly on cpu0

2017-03-31 Thread Julien Grall
Hi Stefano, On 03/30/2017 11:35 PM, Stefano Stabellini wrote: parse_vwfi runs after init_traps on cpu0, potentially resulting in the wrong HCR_EL2 for it. Secondary cpus boot after parse_vwfi, so in their case init_traps will write the correct set of flags to HCR_EL2. For cpu0, fix the issue by

[Xen-devel] [PATCH] setup vwfi correctly on cpu0

2017-03-30 Thread Stefano Stabellini
parse_vwfi runs after init_traps on cpu0, potentially resulting in the wrong HCR_EL2 for it. Secondary cpus boot after parse_vwfi, so in their case init_traps will write the correct set of flags to HCR_EL2. For cpu0, fix the issue by changing HCR_EL2 setting directly in parse_vwfi. Signed-off-by: