Re: [PATCH v3 7/7] xen/arm: Sanitize CTR_EL0 and emulate it if needed

2021-09-07 Thread Stefano Stabellini
On Tue, 7 Sep 2021, Bertrand Marquis wrote: > Hi Julien, > > > On 6 Sep 2021, at 18:36, Julien Grall wrote: > > > > Hi Bertrand, > > > > On 06/09/2021 09:29, Bertrand Marquis wrote: > >>> On 3 Sep 2021, at 23:49, Stefano Stabellini > >>> wrote: > >>> > >>> On Tue, 31 Aug 2021, Bertrand Marqu

Re: [PATCH v3 7/7] xen/arm: Sanitize CTR_EL0 and emulate it if needed

2021-09-07 Thread Bertrand Marquis
Hi Julien, > On 6 Sep 2021, at 18:36, Julien Grall wrote: > > Hi Bertrand, > > On 06/09/2021 09:29, Bertrand Marquis wrote: >>> On 3 Sep 2021, at 23:49, Stefano Stabellini wrote: >>> >>> On Tue, 31 Aug 2021, Bertrand Marquis wrote: Hi Julien, > On 31 Aug 2021, at 15:47, Julien

Re: [PATCH v3 7/7] xen/arm: Sanitize CTR_EL0 and emulate it if needed

2021-09-06 Thread Julien Grall
Hi Bertrand, On 06/09/2021 09:29, Bertrand Marquis wrote: On 3 Sep 2021, at 23:49, Stefano Stabellini wrote: On Tue, 31 Aug 2021, Bertrand Marquis wrote: Hi Julien, On 31 Aug 2021, at 15:47, Julien Grall wrote: On 31/08/2021 14:17, Bertrand Marquis wrote: Hi Julien, Hi Bertrand, On

Re: [PATCH v3 7/7] xen/arm: Sanitize CTR_EL0 and emulate it if needed

2021-09-06 Thread Bertrand Marquis
Hi Stefano, > On 3 Sep 2021, at 23:49, Stefano Stabellini wrote: > > On Tue, 31 Aug 2021, Bertrand Marquis wrote: >> Hi Julien, >> >>> On 31 Aug 2021, at 15:47, Julien Grall wrote: >>> >>> >>> >>> On 31/08/2021 14:17, Bertrand Marquis wrote: Hi Julien, >>> >>> Hi Bertrand, >>> >

Re: [PATCH v3 7/7] xen/arm: Sanitize CTR_EL0 and emulate it if needed

2021-09-03 Thread Stefano Stabellini
On Tue, 31 Aug 2021, Bertrand Marquis wrote: > Hi Julien, > > > On 31 Aug 2021, at 15:47, Julien Grall wrote: > > > > > > > > On 31/08/2021 14:17, Bertrand Marquis wrote: > >> Hi Julien, > > > > Hi Bertrand, > > > >>> On 27 Aug 2021, at 16:05, Julien Grall wrote: > >>> > >>> Hi Bertrand, >

Re: [PATCH v3 7/7] xen/arm: Sanitize CTR_EL0 and emulate it if needed

2021-08-31 Thread Bertrand Marquis
Hi Julien, > On 31 Aug 2021, at 15:47, Julien Grall wrote: > > > > On 31/08/2021 14:17, Bertrand Marquis wrote: >> Hi Julien, > > Hi Bertrand, > >>> On 27 Aug 2021, at 16:05, Julien Grall wrote: >>> >>> Hi Bertrand, >>> >>> On 25/08/2021 14:18, Bertrand Marquis wrote: Sanitize CTR_EL

Re: [PATCH v3 7/7] xen/arm: Sanitize CTR_EL0 and emulate it if needed

2021-08-31 Thread Julien Grall
On 31/08/2021 14:17, Bertrand Marquis wrote: Hi Julien, Hi Bertrand, On 27 Aug 2021, at 16:05, Julien Grall wrote: Hi Bertrand, On 25/08/2021 14:18, Bertrand Marquis wrote: Sanitize CTR_EL0 value between cores. In most cases different values will taint Xen but if different i-cache po

Re: [PATCH v3 7/7] xen/arm: Sanitize CTR_EL0 and emulate it if needed

2021-08-31 Thread Bertrand Marquis
Hi Julien, > On 27 Aug 2021, at 16:05, Julien Grall wrote: > > Hi Bertrand, > > On 25/08/2021 14:18, Bertrand Marquis wrote: >> Sanitize CTR_EL0 value between cores. >> In most cases different values will taint Xen but if different >> i-cache policies are found, we choose the one which will be

Re: [PATCH v3 7/7] xen/arm: Sanitize CTR_EL0 and emulate it if needed

2021-08-27 Thread Julien Grall
Hi Bertrand, On 25/08/2021 14:18, Bertrand Marquis wrote: Sanitize CTR_EL0 value between cores. In most cases different values will taint Xen but if different i-cache policies are found, we choose the one which will be compatible between all cores in terms of invalidation/data cache flushing st

[PATCH v3 7/7] xen/arm: Sanitize CTR_EL0 and emulate it if needed

2021-08-25 Thread Bertrand Marquis
Sanitize CTR_EL0 value between cores. In most cases different values will taint Xen but if different i-cache policies are found, we choose the one which will be compatible between all cores in terms of invalidation/data cache flushing strategy. In this case we need to activate the TID2 bit in HCR