[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220204235415.GC785175@iweiny-DESK2.sc.intel.com>
Date: Fri, 4 Feb 2022 15:54:15 -0800
From: Ira Weiny <ira.weiny@...el.com>
To: Dave Hansen <dave.hansen@...el.com>
Cc: Dave Hansen <dave.hansen@...ux.intel.com>,
"H. Peter Anvin" <hpa@...or.com>,
Dan Williams <dan.j.williams@...el.com>,
Fenghua Yu <fenghua.yu@...el.com>,
Rick Edgecombe <rick.p.edgecombe@...el.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH V8 11/44] mm/pkeys: Define static PKS key array and
default values
On Fri, Jan 28, 2022 at 04:02:05PM -0800, Dave Hansen wrote:
> On 1/27/22 09:54, ira.weiny@...el.com wrote:
> > +#define PKS_INIT_VALUE (PKR_RW_KEY(PKS_KEY_DEFAULT) | \
> > + PKR_AD_KEY(1) | \
> > + PKR_AD_KEY(2) | PKR_AD_KEY(3) | \
> > + PKR_AD_KEY(4) | PKR_AD_KEY(5) | \
> > + PKR_AD_KEY(6) | PKR_AD_KEY(7) | \
> > + PKR_AD_KEY(8) | PKR_AD_KEY(9) | \
> > + PKR_AD_KEY(10) | PKR_AD_KEY(11) | \
> > + PKR_AD_KEY(12) | PKR_AD_KEY(13) | \
> > + PKR_AD_KEY(14) | PKR_AD_KEY(15))
>
> Considering how this is going to get used, let's just make this
> one-key-per-line:
>
> #define PKS_INIT_VALUE (PKR_RW_KEY(PKS_KEY_DEFAULT) | \
> PKR_AD_KEY(1) | \
> PKR_AD_KEY(2) | \
> PKR_AD_KEY(3) | \
> ...
Good idea, done.
Ira
Powered by blists - more mailing lists