From: Ian Campbell Subject: Re: [PATCH v3 4/5] tools, libxl: parse optional start gfn from the iomem config option Date: Fri, 21 Mar 2014 10:47:56 +0000 Message-ID: <1395398876.27358.28.camel@kazak.uk.xensource.com> References: <1394914286-29713-1-git-send-email-avanzini.arianna@gmail.com> <1394914286-29713-5-git-send-email-avanzini.arianna@gmail.com> <5324D5AA.6000100@linaro.org> <1395050502.4159.254.camel@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1395050502.4159.254.camel@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: paolo.valente@unimore.it, keir@xen.org, stefano.stabellini@eu.citrix.com, tim@xen.org, Julien Grall , Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, julien.grall@citrix.com, etrudeau@broadcom.com, JBeulich@suse.com, Arianna Avanzini , viktor.kleinik@globallogic.com List-Id: xen-devel@lists.xenproject.org On Mon, 2014-03-17 at 11:01 +0100, Dario Faggioli wrote: > On sab, 2014-03-15 at 22:35 +0000, Julien Grall wrote: > > On 15/03/14 20:11, Arianna Avanzini wrote: > > > diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 > > > index a6663b9..d9684f2 100644 > > > --- a/docs/man/xl.cfg.pod.5 > > > +++ b/docs/man/xl.cfg.pod.5 > > > @@ -602,12 +602,13 @@ is given in hexadecimal and may either a span e.g. C<2f8-2ff> > > > It is recommended to use this option only for trusted VMs under > > > administrator control. > > > > > > -=item B > > > +=item B > > > > > > Allow guest to access specific hardware I/O memory pages. B > > > is a physical page number. B is the number > > > -of pages beginning with B to allow access. Both values > > > -must be given in hexadecimal. > > > +of pages beginning with B to allow access. B specifies > > > +the guest frame number where the mapping will start in the domU's > > > +address space. All of these values must be given in hexadecimal. > > > > > > It is recommended to use this option only for trusted VMs under > > > administrator control. > > > diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > > > index 612645c..f0bdb09 100644 > > > --- a/tools/libxl/libxl_types.idl > > > +++ b/tools/libxl/libxl_types.idl > > > @@ -172,6 +172,7 @@ libxl_ioport_range = Struct("ioport_range", [ > > > libxl_iomem_range = Struct("iomem_range", [ > > > ("start", uint64), > > > ("number", uint64), > > > + ("gfn", uint64), > > > > I'm not a libxl expert, but you are modifying an existing structure. Ian > > & Ian, do we need to bump the interface version? > > > I think what we need is the proper LIBXL_HAVE_FOO stuff. Correct.