From: "Jan Beulich" Subject: Re: [PATCH v2 2/3] x86/AMD: support further feature masking MSRs Date: Wed, 09 Apr 2014 16:50:01 +0100 Message-ID: <53458849020000780000754E@nat28.tlf.novell.com> References: <53428DCC020000780000607D@nat28.tlf.novell.com> <53428F4402000078000060BB@nat28.tlf.novell.com> <5342C28C.2090809@oracle.com> <5343BE3B020000780000668A@nat28.tlf.novell.com> <5343FEBB.7090202@oracle.com> <53441D840200007800006ACE@nat28.tlf.novell.com> <53440448.5020300@oracle.com> <534424CE0200007800006BBD@nat28.tlf.novell.com> <53441255.1070908@oracle.com> <53456996.8060707@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WXulI-0001qC-TK for xen-devel@lists.xenproject.org; Wed, 09 Apr 2014 15:50:06 +0000 In-Reply-To: <53456996.8060707@amd.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: Aravind Gopalakrishnan Cc: xen-devel , Boris Ostrovsky , Keir Fraser , suravee.suthikulpanit@amd.com List-Id: xen-devel@lists.xenproject.org >>> On 09.04.14 at 17:39, wrote: > Hmm. Boris is right.. All BKDG's I can refer to also say cpuid[7,0].eax > is reserved. > > So, we should be OK with allowing user to mask only cpuid[7,0].ebx ? You have an MSR to mask eax output here, yet you don't know what this register is going to be used for? Unless there's a reasonable level of certainty that you'll intentionally break compatibility with Intel here, I think we're well advised to treat the register the way Intel specifies it. (Furthermore, as long as it's reserved, it's going to return 0 from hardware only anyway, and hence we'd limit masked output to 0 - no problem at all.) Jan