From: Hollis Blanchard Subject: Re: [patch] ACM ops interface Date: Thu, 08 Jun 2006 12:59:55 -0500 Message-ID: <1149789596.13780.38.camel@basalt.austin.ibm.com> References: <1149778877.13780.5.camel@basalt.austin.ibm.com> <9e8e21c1e739faf23d6c4f4c3b16cd39@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9e8e21c1e739faf23d6c4f4c3b16cd39@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com, Reiner Sailer , xen-ppc-devel List-Id: xen-devel@lists.xenproject.org On Thu, 2006-06-08 at 17:11 +0100, Keir Fraser wrote: > On 8 Jun 2006, at 16:01, Hollis Blanchard wrote: > > > If the ACM ops were always passed in a union, we could replace the > > first > > switch with a single copy_from_user(), and also guarantee that > > "interface_version" is always in the right place (it's only there > > coincidentally now). What do you think? > > The interface was deliberately changed away from that style for > consistency with other hypercalls. Also to allow larger argument > structures to be added to the interface later without breaking backward > compatibility (inflating the size of the union). Ah, that makes sense. Too bad it will uglify the already unpleasant handle hacks PPC needs to do. Are you planning to do something similar for the dom0_op structure? -- Hollis Blanchard IBM Linux Technology Center