Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPgh8-0002Gg-VU for qemu-devel@nongnu.org; Wed, 21 Jan 2009 12:16:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPgh7-0002G6-RZ for qemu-devel@nongnu.org; Wed, 21 Jan 2009 12:16:50 -0500 Received: from [199.232.76.173] (port=39749 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPgh7-0002G2-Jr for qemu-devel@nongnu.org; Wed, 21 Jan 2009 12:16:49 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:36251) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPgh7-0005ki-CN for qemu-devel@nongnu.org; Wed, 21 Jan 2009 12:16:49 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18807.22653.889113.401463@mariner.uk.xensource.com> Date: Wed, 21 Jan 2009 17:16:45 +0000 Subject: Re: [Qemu-devel] [PATCH 0/6] Bypass tcg memory functions -v1.0-2009 In-Reply-To: <20090121114626.GA628@poweredge.glommer> References: <1232477465-32386-1-git-send-email-glommer@redhat.com> <200901210543.07538.paul@codesourcery.com> <20090121114626.GA628@poweredge.glommer> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, Paul Brook Glauber Costa writes ("Re: [Qemu-devel] [PATCH 0/6] Bypass tcg memory functions -v1.0-2009"): > On Wed, Jan 21, 2009 at 05:43:06AM +0000, Paul Brook wrote: > > I dislike that you're introducing two different ways or doing the > > same thing. Duplicating all the memory region tracking code seems > > like a bad way to solve this problem. > > That's because I think I'm introducing two different ways of doing > two different things that just happens to fall under the same name > of "memory tracking". For what it's worth I can definitely see where Glauber is coming from. The Xen tree also has a replacement implementations of things like cpu_register_io_memory, for very similar reasons. > In all my laziness I agree that we should not be duplicating > things. Hence why, for example, I tried to commonize the I/O > functions: which are the same. (and I see no benefit in changing the > way KVM keeps track of I/O regions in the near future) I think the KVM and Xen approaches are probably similar enough that we can share this code. I'll have to look at it in detail at some point, which I don't have time to do right now or necessarily even soon. But in the meantime I support in principle the approach that KVM are taking here. Ian.