[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V6 3/5] x86/hvm: pkeys, add xstate support for pkeys
>>> On 19.01.16 at 08:30, <huaitong.han@xxxxxxxxx> wrote: > --- a/xen/arch/x86/xstate.c > +++ b/xen/arch/x86/xstate.c > @@ -579,6 +579,10 @@ int handle_xsetbv(u32 index, u64 new_bv) > if ( (new_bv & ~xfeature_mask) || !valid_xcr0(new_bv) ) > return -EINVAL; > > + /* XCR0.PKRU is disabled on PV mode. */ > + if ( is_pv_vcpu(curr) && (new_bv & XSTATE_PKRU) ) > + return -EINVAL; How about making this more distinguishable by using e.g. -EOPNOTSUPP here? Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |