From: Tristan Gingold Subject: PATCH: was Re**2: PATCH (and RFC): new dom0 hypercall: DOM0_DOMAIN_SETUP Date: Mon, 19 Jun 2006 17:20:32 +0200 Message-ID: <200606191720.32894.Tristan.Gingold@bull.net> References: <200606151019.24560.Tristan.Gingold@bull.net> <200606191643.55983.Tristan.Gingold@bull.net> <2d74eb264c8407068db519e0e10c0d5e@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_ADslE90MGqTH4uX" Return-path: In-Reply-To: <2d74eb264c8407068db519e0e10c0d5e@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, Alex Williamson , xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_ADslE90MGqTH4uX Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le Lundi 19 Juin 2006 16:45, Keir Fraser a =E9crit : > On 19 Jun 2006, at 15:43, Tristan Gingold wrote: > >> I'd like the patch modified as follows: > >> * Change flag name to XEN_DOMAINSETUP_hvm_guest (explicitly in Xen > >> namespace; more the style of other flags added recently; not VMX > >> specific). > >> * Place the final two fields of the struct inside ifdef __ia64__. > > > > Why not defining an arch-dependant struct for adding more fields to > > this > > structure ? (I prefer to do that early than breaking compatibility > > later). > > How does that ease binary compatibility if you want to add extra common > fields later? You mean to have a pointer to the arch-dep struct? Err, this was a bad argument. I was thinking about avoiding #if arch /#end= if=20 in this public header. > PS. The flag name: DOM0_DOMAIN_SETUP_ would actually be a fine prefix > for flags. Use whatever you prefer. Here is the patch. I hope it looks like you expect it :-) Tristan. --Boundary-00=_ADslE90MGqTH4uX Content-Type: text/x-diff; charset="iso-8859-1"; name="xen-ds1.diffs" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-ds1.diffs" # HG changeset patch # User gingold@virtu10 # Node ID ca85cff0450c212a086a262980e903f253e63c1b # Parent 0d1dab1d9b67da2651c9b543b97ee8e5e3c7fed3 Add DOM0_DOMAIN_SETUP hypercall. Signed-off-by: Tristan Gingold diff -r 0d1dab1d9b67 -r ca85cff0450c xen/include/public/dom0_ops.h --- a/xen/include/public/dom0_ops.h Fri Jun 16 10:18:54 2006 -0600 +++ b/xen/include/public/dom0_ops.h Mon Jun 19 15:56:36 2006 +0200 @@ -513,6 +513,18 @@ struct dom0_hypercall_init { }; typedef struct dom0_hypercall_init dom0_hypercall_init_t; DEFINE_XEN_GUEST_HANDLE(dom0_hypercall_init_t); + +#define DOM0_DOMAIN_SETUP 49 +#define DOM0_DOMAIN_SETUP_hvm_guest (1 << 0) +typedef struct dom0_domain_setup { + domid_t domain; /* domain to be affected */ + unsigned long flags; +#ifdef __ia64__ + unsigned long bp; /* mpaddr of boot param area */ + unsigned long maxmem; /* Highest memory address for MDT. */ +#endif +} dom0_domain_setup_t; +DEFINE_XEN_GUEST_HANDLE(dom0_domain_setup_t); struct dom0_op { uint32_t cmd; @@ -555,6 +567,7 @@ struct dom0_op { struct dom0_irq_permission irq_permission; struct dom0_iomem_permission iomem_permission; struct dom0_hypercall_init hypercall_init; + struct dom0_domain_setup domain_setup; uint8_t pad[128]; } u; }; --Boundary-00=_ADslE90MGqTH4uX Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_ADslE90MGqTH4uX--