Re: [PATCH 3/6] x86/hvm: Context switch MSR_PKRS

2023-01-09 Thread Andrew Cooper
On 21/12/2021 11:56 am, Jan Beulich wrote: > On 16.12.2021 10:54, Andrew Cooper wrote: >> @@ -42,4 +45,49 @@ static inline void wrpkru(uint32_t pkru) >> :: "a" (pkru), "d" (0), "c" (0) ); >> } >> >> +/* >> + * Xen does not use PKS. >> + * >> + * Guest kernel use is expected

Re: [PATCH 3/6] x86/hvm: Context switch MSR_PKRS

2021-12-21 Thread Jan Beulich
On 16.12.2021 10:54, Andrew Cooper wrote: > Under PKS, MSR_PKRS is available and based on the CPUID policy alone, and > usable independently of CR4.PKS. See the large comment in prot-key.h for > details of the context switching arrangement. > > Signed-off-by: Andrew Cooper > --- > CC: Jan

[PATCH 3/6] x86/hvm: Context switch MSR_PKRS

2021-12-16 Thread Andrew Cooper
Under PKS, MSR_PKRS is available and based on the CPUID policy alone, and usable independently of CR4.PKS. See the large comment in prot-key.h for details of the context switching arrangement. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Roger Pau Monné CC: Wei Liu CC: Kevin Tian