From: Ian Campbell Subject: Re: [PATCH v2] xc_cpuid_x86.c: Simplify masking conditions and remove redundant work Date: Wed, 10 Sep 2014 15:09:31 +0100 Message-ID: <1410358171.5894.5.camel@kazak.uk.xensource.com> References: <1410344940-24608-1-git-send-email-alfred.z.song@gmail.com> <1410349493.8217.353.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: z Cc: Stefano Stabellini , jinsong.liu@alibaba-inc.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, =?UTF-8?Q?=E9=A9=AC=E6=B6=9B=28=E4=BC=AF=E7=91=9C=29?= , Jan Beulich , Zhuo Song List-Id: xen-devel@lists.xenproject.org On Wed, 2014-09-10 at 21:02 +0800, z wrote: > I am sorry for confusing. The latest one is my all-in-one version: > > Subject: [PATCH v2] xc_cpuid_x86.c: Simplify masking conditions > and remove redundant work > Date: Wed, 10 Sep 2014 18:29:00 +0800 (10/09/14 11:29:00) Thanks, since Jan has already indicated he's happy with it I went to apply it, however a build test resulted in: xc_cpuid_x86.c: In function 'intel_xc_cpuid_policy': xc_cpuid_x86.c:192:32: error: expected ')' before ';' token xc_cpuid_x86.c:198:5: error: expected ';' before '}' token I've folded in this change to fix it: @@ -189,7 +189,7 @@ static void intel_xc_cpuid_policy( /* Only a few features are advertised in Intel's 0x80000001. */ regs[2] &= (bitmaskof(X86_FEATURE_LAHF_LM) | bitmaskof(X86_FEATURE_3DNOWPREFETCH) | - bitmaskof(X86_FEATURE_ABM); + bitmaskof(X86_FEATURE_ABM)); regs[3] &= (bitmaskof(X86_FEATURE_NX) | bitmaskof(X86_FEATURE_LM) | bitmaskof(X86_FEATURE_SYSCALL) | Please try and remember to compile test your incremental changes next time ;-) > Thank you for your suggestions and the rules. I left the community for > a couple of years to work for some more closed projects. > > And I am glad to be here again. I will follow the advices you > mentioned. Welcome back! Ian.