From: Ian Campbell Subject: Re: [PATCH 1/2] libxc: pass parameters to xc_hvm_build() in a structure Date: Wed, 29 Feb 2012 12:12:04 +0000 Message-ID: <1330517524.4270.60.camel@zakaz.uk.xensource.com> References: <1330453673-8606-1-git-send-email-david.vrabel@citrix.com> <1330453673-8606-2-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1330453673-8606-2-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org On Tue, 2012-02-28 at 18:27 +0000, David Vrabel wrote: > diff --git a/tools/libxc/xenguest.h b/tools/libxc/xenguest.h > index 533e702..19b0382 100644 > --- a/tools/libxc/xenguest.h > +++ b/tools/libxc/xenguest.h > @@ -171,10 +171,23 @@ int xc_linux_build_mem(xc_interface *xch, > unsigned int console_evtchn, > unsigned long *console_mfn); > > -int xc_hvm_build(xc_interface *xch, > - uint32_t domid, > - int memsize, > - const char *image_name); > +struct xc_hvm_params { > + uint64_t mem_size; /**< Memory size in bytes. */ > + uint64_t mem_target; /**< Memory target in bytes. */ > + const char *image_file_name; /**< File name of the image to load. > */ > +}; Only a minor nit but Xen already has a concept of an "HVM param" which is something else. Might this be confusing? What parses that "/**<" syntax? Don't see it anywhere else in the tree apart from tools/libxl/libxlu_disk_l.h etcv which are autogenerated. Ian.