From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: Re: [V10 PATCH 08/23] PVH xen: Introduce PVH guest type and some basic changes. Date: Wed, 7 Aug 2013 15:37:49 -0700 Message-ID: <20130807153749.7df805b9@mantra.us.oracle.com> References: <1374631171-15224-1-git-send-email-mukesh.rathor@oracle.com> <1374631171-15224-9-git-send-email-mukesh.rathor@oracle.com> <5200FE6402000078000E99A1@nat28.tlf.novell.com> <20130806162646.6c55bf47@mantra.us.oracle.com> <52020FE9.4020408@eu.citrix.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: George Dunlap Cc: "keir.xen@gmail.com" , "xen-devel@lists.xensource.com" , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Wed, 7 Aug 2013 14:10:27 +0100 George Dunlap wrote: > On Wed, Aug 7, 2013 at 10:14 AM, George Dunlap > wrote: > >> And the changelog does say it: > >> > >> "Note, we drop the const qualifier from vcpu_show_registers() to > >> accomodate the hvm function call in guest_kernel_mode()." > > > > > > I said *exact function*. guest_kernel_mode() doesn't need it > > non-const; it needs it because of a function that it calls. That > > in turn doesn't need it non-const either -- it needs it because of > > the next one down. Who *actually* needs vcpu to be non-const, way > > down at the bottom? That's what I need to know to understand why > > we can't just change each of those functions to const all the way > > down. > > The general principle here is that you have already done the work of > tracing through the code to figure out what's going on; you should > cache that information in the commit log so that reviewers (and people > doing archaeology) don't need to duplicate the effort. I can't remember exact function that can't allow const, but there are tons of leaf calls being passed v. Anyways, I'll recreate the crime scene, and put in the comment log. Mukesh