From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 1/2] xen/x86: Helpers for cpu feature manipuation Date: Mon, 26 Oct 2015 12:42:30 +0000 Message-ID: <562E1FB6.7020101@citrix.com> References: <1445858262-17965-1-git-send-email-andrew.cooper3@citrix.com> <1445858262-17965-2-git-send-email-andrew.cooper3@citrix.com> <562E254902000078000AE91A@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: <562E254902000078000AE91A@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 26/10/15 12:06, Jan Beulich wrote: >>>> On 26.10.15 at 12:17, wrote: >> --- a/xen/arch/x86/cpu/common.c >> +++ b/xen/arch/x86/cpu/common.c >> @@ -202,7 +202,7 @@ static void __init early_cpu_detect(void) >> c->x86_mask = tfms & 15; >> cap0 &= ~cleared_caps[0]; >> cap4 &= ~cleared_caps[4]; >> - if (cap0 & (1<<19)) >> + if (cap0 & cpufeat_mask(X86_FEATURE_CLFLSH)) > This one's particularly well spotted! Thanks! I doubt I have found all instances like this. I only found this one because of the associated changes in the subsequent patch. I will be fixing them as I find them. ~Andrew