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

2017-04-03 Thread Stefano Stabellini
On Mon, 3 Apr 2017, Julien Grall wrote: > Hi Stefano, > > On 03/31/2017 11:37 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 corr

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

2017-04-03 Thread Julien Grall
Hi Stefano, On 03/31/2017 11:37 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 v2] setup vwfi correctly on cpu0

2017-03-31 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 from a new presmp_initcall. Signed-off