From: "Jan Beulich" Subject: Re: [PATCH v3] Sanity check xsave area when migrating or restoring from older Xen verions Date: Tue, 21 Oct 2014 16:29:58 +0100 Message-ID: <544698160200007800040BF9@mail.emea.novell.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141021111547.304cd0cb2e19c203d514f0fd@verizon.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Don Koch Cc: Andrew Cooper , Keir Fraser , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> 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. Jan