From: "Jan Beulich" Subject: Re: [XenPPC] Re: [PATCH 6 of 6] [XEN][LINUX] Add 32-bit privcmd ioctlconversion for 64-b Date: Fri, 06 Jul 2007 17:09:18 +0100 Message-ID: <468E854E.76E4.0078.0@novell.com> References: <3833674b6d561e690b49.1183674475@localhost> <468E14E8.76E4.0078.0@novell.com> <1183736659.3008.8.camel@basalt> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1183736659.3008.8.camel@basalt> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Hollis Blanchard Cc: xen-devel@lists.xensource.com, Keir Fraser , xen-ppc-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Hollis Blanchard 06.07.07 17:44 >>> >> Where does the hypercall argument translation happen?=20 > >It happens inside privcmd_hypercall(). See >http://xenbits.xensource.com/ext/linux-ppc-2.6.hg?file/04f6ad5d9232/arch/p= owerpc/platforms/xen/hcall.c=20 > >(In that tree, the function is named "arch_privcmd_hypercall".) IA64 and >PPC both implement this function now; only x86 is left with #ifdefs in >drivers/xen/privcmd/privcmd.c . > >COMPATIBLE_IOCTL is just about the ioctl itself, not the sub-structures. Hmm, I can't really see any structures being translated there, all I see = is guest handles getting dereferenced. So I'm still unclear where you do the 32-bit layout to 64-bit layout conversion, but obviously I must be missing something. Jan