[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 3/4] xen/arm: clean and invalidate all guest caches by VMID after domain build.



On Thu, 2014-02-06 at 09:53 +0000, Jan Beulich wrote:
> >>> On 05.02.14 at 17:03, Ian Campbell <ian.campbell@xxxxxxxxxx> wrote:
> > --- a/tools/libxc/xc_domain.c
> > +++ b/tools/libxc/xc_domain.c
> > @@ -48,6 +48,16 @@ int xc_domain_create(xc_interface *xch,
> >      return 0;
> >  }
> >  
> > +int xc_domain_cacheflush(xc_interface *xch, uint32_t domid,
> > +                         xen_pfn_t start_pfn, xen_pfn_t nr_pfns)
> > +{
> > +    DECLARE_DOMCTL;
> > +    domctl.cmd = XEN_DOMCTL_cacheflush;
> > +    domctl.domain = (domid_t)domid;
> > +    domctl.u.cacheflush.start_pfn = start_pfn;
> > +    domctl.u.cacheflush.end_pfn = start_pfn + nr_pfns;
> > +    return do_domctl(xch, &domctl);
> > +}
> 
> I'm confused - both in the overview mail and in domctl.h below
> you state the range to now be inclusive, yet neither here nor
> in the hypervisor changes this seems to actually be the case
> (unless the earlier "rename ..." patches now did more than just
> renaming - I didn't look at them).

Yes, I think I got myself confused.

I've actually now concluded that the start + nr interface should be
pushed down into the domctl layer too -- that seems to be the common
idiom and is less prone to confusion...

> 
> > --- a/tools/libxc/xenctrl.h
> > +++ b/tools/libxc/xenctrl.h
> > @@ -454,7 +454,6 @@ int xc_domain_create(xc_interface *xch,
> >                       uint32_t flags,
> >                       uint32_t *pdomid);
> >  
> > -
> >  /* Functions to produce a dump of a given domain
> >   *  xc_domain_dumpcore - produces a dump to a specified file
> >   *  xc_domain_dumpcore_via_callback - produces a dump, using a specified
> 
> Stray leftover change?

Yes, will remove.

Ian


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.