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

Re: [Xen-devel] [PATCH 02/18] PVH xen: add XENMEM_add_to_physmap_range



On Fri, 2013-05-31 at 10:28 +0100, Jan Beulich wrote:
> >>> On 25.05.13 at 03:25, Mukesh Rathor <mukesh.rathor@xxxxxxxxxx> wrote:
> >  static int xenmem_add_to_physmap_once(
> >      struct domain *d,
> > -    const struct xen_add_to_physmap *xatp)
> > +    const struct xen_add_to_physmap *xatp,
> > +    domid_t foreign_domid)
> 
> The patch could be a bit smaller afaict if you used the otherwise
> unused here domain ID field in xatp for passing the domain ID you
> care about here (I hinted at that in the last round already, where
> I also asked Stefano why we have three domains here in the first
> place).

This interface is already used on ARM, I don't think we want PVH to use
a different variation of the same thing so I don't think it is right to
put this on Mukesh.

AFAICT the existing xenmem ops all take an explicit target domain here,
rather than assuming that the target is the caller, this includes the
non-ranged add_to_physmap variant.

So I think the existing XENMEM_add_to_physmap_range interface is
consistent with the rest of that API, which I think is worthwhile even
if it only ever gets used with DOMID_SELF in practice (we have several
such interfaces, I think).

In any case I'm not sure we can rule out a future need to be able to do
this sort of operation on another domain -- at least not to the extent
of worrying about changing it now that it exists.

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®.