From: "Jan Beulich" Subject: Re: [PATCH] xc_cpuid_x86.c: No need to mask NX twice Date: Fri, 05 Sep 2014 15:10:37 +0100 Message-ID: <5409E07D020000780003182B@mail.emea.novell.com> References: <1409911893-18037-1-git-send-email-alfred.z.song@gmail.com> <5409AD6E0200007800031618@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: z Cc: Ian Campbell , Stefano Stabellini , jinsong.liu@alibaba-inc.com, ian.jackson@eu.citrix.com, Zhuo Song , boyu.mt@alibaba-inc.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 05.09.14 at 15:54, wrote: > Hi, Jan > > Generally, I agree with you. But it seems that we may not simply remove the > ones from the 2 vendor specific functions and keep the generic one, because > the bit could be still cleared eventually when is_pae is true. And I find > PSE36 will be cleared permanently no matter is_pae is true or not. Actually > the work below has been totally overlapped: > > if ( !is_pae ) > { > > clear_bit(X86_FEATURE_NX, > regs[3]); > > clear_bit(X86_FEATURE_PSE36, > regs[3]); > > } > > How can we just "passthrough to cpu vendor specific functions" like leaf > 0x80000000? like this: > > > case 0x80000000: > case > 0x80000001: > > /* Passthrough to cpu vendor specific functions > */ > > break; > > > Correct me if I missed something. I'm sorry, but I don't think I understand what you're trying to say or you're asking. Jan