>>> On 21.12.15 at 08:21, <huaitong....@intel.com> wrote: > This patch adds xstate support for pkeys. > > Signed-off-by: Huaitong Han <huaitong....@intel.com> > Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com> > --- > xen/include/asm-x86/xstate.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/xen/include/asm-x86/xstate.h b/xen/include/asm-x86/xstate.h > index 12d939b..f7c41ba 100644 > --- a/xen/include/asm-x86/xstate.h > +++ b/xen/include/asm-x86/xstate.h > @@ -34,13 +34,15 @@ > #define XSTATE_OPMASK (1ULL << 5) > #define XSTATE_ZMM (1ULL << 6) > #define XSTATE_HI_ZMM (1ULL << 7) > +#define XSTATE_PKRU (1ULL << 9) > #define XSTATE_LWP (1ULL << 62) /* AMD lightweight profiling */ > #define XSTATE_FP_SSE (XSTATE_FP | XSTATE_SSE) > #define XCNTXT_MASK (XSTATE_FP | XSTATE_SSE | XSTATE_YMM | XSTATE_OPMASK > | \ > XSTATE_ZMM | XSTATE_HI_ZMM | XSTATE_NONLAZY) > > #define XSTATE_ALL (~(1ULL << 63)) > -#define XSTATE_NONLAZY (XSTATE_LWP | XSTATE_BNDREGS | XSTATE_BNDCSR) > +#define XSTATE_NONLAZY (XSTATE_LWP | XSTATE_BNDREGS | XSTATE_BNDCSR | \ > + XSTATE_PKRU)
Is it really a good idea to do this uniformly despite PV not going to have pkeys support? Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel