[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V6 2/2] x86/xsaves: fix overwriting between non-lazy/lazy xsaves
On Tue, Mar 29, 2016 at 09:00:38AM -0600, Jan Beulich wrote: > > > > xsaves will be used until supervised state is instroduced in hypervisor. > > "xsaves will not be used ... introduced ..." I suppose? Thanks > > > @@ -223,13 +223,15 @@ void compress_xsave_states(struct vcpu *v, const void > > *src, unsigned int size) > > u64 xstate_bv = ((const struct xsave_struct > > *)src)->xsave_hdr.xstate_bv; > > u64 valid; > > > > - if ( !cpu_has_xsaves && !cpu_has_xsavec ) > > + ASSERT(!xsave_area_compressed(src)); > > + > > + if ( !(v->arch.xcr0_accum & XSTATE_XSAVES_ONLY) && > > + !xsave_area_compressed(src) ) > > Considering the ASSERT(), what's this second half of the conditional > good for? > The check of !xsave_area_compressed(src) indicate we did check the input data. ( The check here is useless, but just want to make this more clear.) As it is useless, I may drop it. > Xen-devel@xxxxxxxxxxxxx > http://lists.xen.org/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |