From: Keir Fraser Subject: Re: RFC: xencomm in common Date: Mon, 21 Aug 2006 09:11:32 +0100 Message-ID: References: <200608211003.55145.Tristan.Gingold@bull.net> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200608211003.55145.Tristan.Gingold@bull.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tristan Gingold , xen-devel Cc: xen-ia64-devel , xen-ppc-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 21/8/06 9:03 am, "Tristan Gingold" wrote: > xencomm is the ppc infrastructure to do hypercalls with guest physical > addresses instead of virtual address. > > Because ia64 should also use physicall address, I think it's better to re-use > the ppc code and to put into common code. > > I'd propose to submit this patch is every part is OK (ie no NAK). > > This patch creates include/xen/xencomm_access.h which is to be included by > asm/guest_access.h. It also creates common/xencomm.c which is compiled only > if HAS_XENCOMM is y in Rules.mk. Fine in principle. Specific comments: * powerpc should be cleaned up at the same time to use the common infrastructure. I don't want duplicated code hanging around in arch/powerpc * The code you add to common/ should obey the coding style of other files in that directory * Arguably we should have an asm-generic for the xencomm guest-access macros. That's a Linux-ism which I think fits well in this particular case. -- Keir