From: Don Koch Subject: Re: [PATCH v3] Sanity check xsave area when migrating or restoring from older Xen verions Date: Tue, 21 Oct 2014 11:53:43 -0400 Message-ID: <20141021115343.c5be787606c02ad87da6e5d7@verizon.com> References: <1413837607-14801-1-git-send-email-dkoch@verizon.com> <54463C0E0200007800040915@mail.emea.novell.com> <20141021102510.d4d9f65da128dbc8e93ae40a@verizon.com> <54468C9F0200007800040B92@mail.emea.novell.com> <20141021111547.304cd0cb2e19c203d514f0fd@verizon.com> <544698160200007800040BF9@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <544698160200007800040BF9@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Andrew Cooper , Keir Fraser , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 21 Oct 2014 16:29:58 +0100 Jan Beulich wrote: > >>> On 21.10.14 at 17:15, wrote: > > The one anomaly I've wondered about is the point of > > ctxt->xfeature_mask; we save it but never use it (outside of a print > > statement) on restore. Do we want to compare it against the global > > xfeature_mask for sanity (print a warning on mismatch) or just ignore > > it. I wouldn't suggest removing it as it would cause another > > compatibility issue with migration. > > This was discussed before, and you could also turn to the commit > which eliminated its use to understand why (e2e45c5628 > "x86/xsave: remove xfeat_mask checking from validate_xstate()"). > And yes, eliminating the _field_ is not an option. Thanks for the reference. Looking at validate_xstate(), I've concluded that the check against the xfeature_mask is a superset of the check against xcr0_accum as the latter is a subset of the former and can only be smaller. Will remove the xfeature_mask size test. > Jan > Thanks, -d