[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v6 1/8] public / x86: Introduce __HYPERCALL_dm_op...
> -----Original Message----- > From: Andrew Cooper > Sent: 23 January 2017 11:06 > To: Paul Durrant <Paul.Durrant@xxxxxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx > Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxx>; Jennifer Herbert > <jennifer.herbert@xxxxxxxxxx>; Jan Beulich <jbeulich@xxxxxxxx> > Subject: Re: [PATCH v6 1/8] public / x86: Introduce __HYPERCALL_dm_op... > > On 23/01/17 10:00, Paul Durrant wrote: > > diff --git a/xen/include/public/hvm/dm_op.h > b/xen/include/public/hvm/dm_op.h > > new file mode 100644 > > index 0000000..9f3e9ee > > --- /dev/null > > +++ b/xen/include/public/hvm/dm_op.h > > @@ -0,0 +1,69 @@ > > +/* > > + * Copyright (c) 2016, Citrix Systems Inc > > + * > > + * Permission is hereby granted, free of charge, to any person obtaining a > copy > > + * of this software and associated documentation files (the "Software"), > to > > + * deal in the Software without restriction, including without limitation > > the > > + * rights to use, copy, modify, merge, publish, distribute, sublicense, > and/or > > + * sell copies of the Software, and to permit persons to whom the > Software is > > + * furnished to do so, subject to the following conditions: > > + * > > + * The above copyright notice and this permission notice shall be included > in > > + * all copies or substantial portions of the Software. > > + * > > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY > KIND, EXPRESS OR > > + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF > MERCHANTABILITY, > > + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO > EVENT SHALL THE > > + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, > DAMAGES OR OTHER > > + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR > OTHERWISE, ARISING > > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE > OR OTHER > > + * DEALINGS IN THE SOFTWARE. > > + * > > + */ > > + > > +#ifndef __XEN_PUBLIC_HVM_DM_OP_H__ > > +#define __XEN_PUBLIC_HVM_DM_OP_H__ > > + > > +#if defined(__XEN__) || defined(__XEN_TOOLS__) > > + > > +#include "../xen.h" > > + > > +struct xen_dm_op { > > + uint32_t op; > > +}; > > + > > +struct xen_dm_op_buf { > > + XEN_GUEST_HANDLE(void) h; > > + xen_ulong_t size; > > +}; > > +typedef struct xen_dm_op_buf xen_dm_op_buf_t; > > +DEFINE_XEN_GUEST_HANDLE(xen_dm_op_buf_t); > > + > > +/* ` enum neg_errnoval > > + * ` HYPERVISOR_dm_op(domid_t domid, > > + * ` xen_dm_op_buf_t bufs[], > > + * ` unsigned int nr_bufs) > > + * ` > > + * > > + * @domid is the domain the hypercall operates on. > > + * @bufs points to an array of buffers where @bufs[0] contains a struct > > + * xen_dm_op, describing the specific device model operation and its > > + * parameters. > > + * @bufs[1..] may be referenced in the parameters for the purposes of > > + * passing extra information to or from the domain. > > + * @nr_bufs is the number of buffers in the @bufs array. > > + */ > > Sorry. One last issue. xen_dm_op_buf and the hypercall documentation > need to be outside the __XEN_TOOL__ define, as they to be used by the > kernel. > > xen_dm_op can stay restricted to tools, as it is only needed by a device > model. > > With this fixed, Reviewed-by: Andrew Cooper > <andrew.cooper3@xxxxxxxxxx>. This can be fixed on commit if there are > no issues from others. > I'm going to need to send v7. The name change in patch #7 broke the user-space parts so I need to fix. Paul > ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |