[PATCH 6/8] mm/pdx: Standardize region validation wrt pdx compression

2023-07-17 Thread Alejandro Vallejo
Regions must be occasionally validated for pdx compression validity. That is, whether any of the machine addresses spanning the region have a bit set in the pdx "hole" (which is expected to always contain zeroes). There are a few such tests through the code, and they all check for different things.

Re: [PATCH 6/8] mm/pdx: Standardize region validation wrt pdx compression

2023-07-24 Thread Alejandro Vallejo
On Fri, Jul 21, 2023 at 06:05:51PM +0100, Julien Grall wrote: > Hi Alejandro, > > On 17/07/2023 17:03, Alejandro Vallejo wrote: > > +bool pdx_is_region_compressible(unsigned long smfn, unsigned long emfn) > > For newer interface, I would rather prefer if we use start + size. It is > easier to rea

Re: [PATCH 6/8] mm/pdx: Standardize region validation wrt pdx compression

2023-07-24 Thread Julien Grall
Hi Alejandro, On 24/07/2023 13:18, Alejandro Vallejo wrote: On Fri, Jul 21, 2023 at 06:05:51PM +0100, Julien Grall wrote: Hi Alejandro, On 17/07/2023 17:03, Alejandro Vallejo wrote: +bool pdx_is_region_compressible(unsigned long smfn, unsigned long emfn) For newer interface, I would rather

Re: [PATCH 6/8] mm/pdx: Standardize region validation wrt pdx compression

2023-07-24 Thread Jan Beulich
On 24.07.2023 20:20, Julien Grall wrote: > On 24/07/2023 13:18, Alejandro Vallejo wrote: >> On Fri, Jul 21, 2023 at 06:05:51PM +0100, Julien Grall wrote: >>> Hi Alejandro, >>> >>> On 17/07/2023 17:03, Alejandro Vallejo wrote: +bool pdx_is_region_compressible(unsigned long smfn, unsigned long e

Re: [PATCH 6/8] mm/pdx: Standardize region validation wrt pdx compression

2023-07-25 Thread Julien Grall
Hi, On 25/07/2023 07:51, Jan Beulich wrote: On 24.07.2023 20:20, Julien Grall wrote: On 24/07/2023 13:18, Alejandro Vallejo wrote: On Fri, Jul 21, 2023 at 06:05:51PM +0100, Julien Grall wrote: Hi Alejandro, On 17/07/2023 17:03, Alejandro Vallejo wrote: +bool pdx_is_region_compressible(unsig

Re: [PATCH 6/8] mm/pdx: Standardize region validation wrt pdx compression

2023-07-25 Thread Jan Beulich
On 25.07.2023 16:27, Julien Grall wrote: > Hi, > > On 25/07/2023 07:51, Jan Beulich wrote: >> On 24.07.2023 20:20, Julien Grall wrote: >>> On 24/07/2023 13:18, Alejandro Vallejo wrote: On Fri, Jul 21, 2023 at 06:05:51PM +0100, Julien Grall wrote: > Hi Alejandro, > > On 17/07/2023

Re: [PATCH 6/8] mm/pdx: Standardize region validation wrt pdx compression

2023-07-27 Thread Alejandro Vallejo
On Tue, Jul 25, 2023 at 04:34:42PM +0200, Jan Beulich wrote: > On 25.07.2023 16:27, Julien Grall wrote: > > Hi, > > > > On 25/07/2023 07:51, Jan Beulich wrote: > >> On 24.07.2023 20:20, Julien Grall wrote: > >>> On 24/07/2023 13:18, Alejandro Vallejo wrote: > On Fri, Jul 21, 2023 at 06:05:51P

Re: [PATCH 6/8] mm/pdx: Standardize region validation wrt pdx compression

2023-07-27 Thread Jan Beulich
On 27.07.2023 12:14, Alejandro Vallejo wrote: > On Tue, Jul 25, 2023 at 04:34:42PM +0200, Jan Beulich wrote: >> On 25.07.2023 16:27, Julien Grall wrote: >>> Hi, >>> >>> On 25/07/2023 07:51, Jan Beulich wrote: On 24.07.2023 20:20, Julien Grall wrote: > On 24/07/2023 13:18, Alejandro Vallejo

Re: [PATCH 6/8] mm/pdx: Standardize region validation wrt pdx compression

2023-07-21 Thread Julien Grall
Hi Alejandro, On 17/07/2023 17:03, Alejandro Vallejo wrote: Regions must be occasionally validated for pdx compression validity. That is, whether any of the machine addresses spanning the region have a bit set in the pdx "hole" (which is expected to always contain zeroes). There are a few such t