From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v2 09/30] xen/x86: Store antifeatures inverted in a featureset Date: Fri, 12 Feb 2016 16:50:18 +0000 Message-ID: <56BE0D4A.4030001@citrix.com> References: <1454679743-18133-1-git-send-email-andrew.cooper3@citrix.com> <1454679743-18133-10-git-send-email-andrew.cooper3@citrix.com> <56BE1ACA02000078000D1874@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <56BE1ACA02000078000D1874@prv-mh.provo.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: Xen-devel List-Id: xen-devel@lists.xenproject.org On 12/02/16 16:47, Jan Beulich wrote: >>>> On 05.02.16 at 14:42, wrote: >> Awkwardly, some new feature bits mean "Feature $X no longer works". >> Store these inverted in a featureset. >> >> This permits safe zero-extending of a smaller featureset as part of a >> comparison, and safe reasoning (subset?, superset?, compatible? etc.) >> without specific knowldge of meaning of each bit. >> >> Signed-off-by: Andrew Cooper > Acked-by: Jan Beulich > albeit ... > >> @@ -158,7 +174,7 @@ >> #define X86_FEATURE_INVPCID ( 5*32+10) /* Invalidate Process Context ID */ >> #define X86_FEATURE_RTM ( 5*32+11) /* Restricted Transactional Memory */ >> #define X86_FEATURE_CMT ( 5*32+12) /* Cache Monitoring Technology */ >> -#define X86_FEATURE_NO_FPU_SEL ( 5*32+13) /* FPU CS/DS stored as zero */ >> +#define X86_FEATURE_FPU_SEL ( 5*32+13) /*! FPU CS/DS stored as zero */ > ... changes like this to the public interface should normally be > avoided (i.e. you had better left out the "NO" one when you first > created this file). I couldn't find a neater way of doing this while keeping the name consistent with its representation. I took the decision that this is the lesser of the available evils when making this change. I am open to alternate suggestions. ~Andrew