From: "Jan Beulich" Subject: Re: [PATCH v23 10/15] x86/VPMU: Use pre-computed masks when checking validity of MSRs Date: Mon, 01 Jun 2015 12:07:26 +0100 Message-ID: <556C590E020000780007FAB7@mail.emea.novell.com> References: <1432924980-24281-1-git-send-email-boris.ostrovsky@oracle.com> <1432924980-24281-11-git-send-email-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1432924980-24281-11-git-send-email-boris.ostrovsky@oracle.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: Boris Ostrovsky Cc: kevin.tian@intel.com, suravee.suthikulpanit@amd.com, andrew.cooper3@citrix.com, tim@xen.org, dietmar.hahn@ts.fujitsu.com, xen-devel@lists.xen.org, Aravind.Gopalakrishnan@amd.com, jun.nakajima@intel.com, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org >>> On 29.05.15 at 20:42, wrote: > No need to compute those masks on every MSR access. > > Also, when checking MSR_P6_EVNTSELx registers make sure that bit 21 > is not set. I had hoped you would save me and other readers to look up what this bit means by giving a reason why this change is wanted/needed. What you say above is at best marginally more useful (it clarifies that this isn't a stray change) than having the adjustment only in the code. Jan