From: Keir Fraser Subject: Re: [PATCH] mem_event: fix regression affecting CR3, CR4 memory events Date: Mon, 10 Sep 2012 22:39:09 +0100 Message-ID: References: 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: Steven Maresca , xen-devel@lists.xen.org Cc: Aravindh Puthiyaparambil , andres@lagarcavilla.org List-Id: xen-devel@lists.xenproject.org On 10/09/2012 22:20, "Steven Maresca" wrote: > Given the refactoring in the commit related to the regression > http://xenbits.xen.org/hg/xen-unstable.hg/rev/1276926e3795, it seemed > (to me anyway) that inserting calls as shown in the patch would be > cleaner, but I can definitely come up with some drawbacks. However, I > wanted to get this fixed for 4.2 if at all possible, so I wanted to > send regardless. > > In terms of drawbacks, this will require some ifdefs for x86_64, for example. > > Any suggestions for the cleanest means of achieving the same in vmx.c? I don't understand this at all. The original commit moved some CR handling to common HVM code. Your patch adds some mem_event calls into that common HVM code. What would need to be "achieved" in vmx.c? What ifdefs would be required for x86_64? -- Keir