On Wed, 2015-12-09 at 16:09 +0000, Ian Jackson wrote:
> > + * The child must open a new handle if they want to interact with
> > + * gnttab.
> >   *
> > - * Return an fd onto the grant table driver.  Logs errors.
> > + * A child may safely call xengnttab_close() on a xengnttab_handle
> > + * inherited from a parent and this will safely reclaim any virtual
> > + * address space used by mappings associated with that handle.
> 
> Is this actually true ?  Normally close() on an fd does not munmap
> anything mmapped from the fd.

Uh yes, I was talking rubbish here, unless the drivers are more magic than
I think they are.

So what is the answer? That such memory is wasted and irrecovable until
exec?

See also the discussion beneath Wei's reply.

Ack to all other feedback.

> > +         * Because there are no notifications when the page is swapped
> > +         * in, wait a bit before retrying, and hope that the page will
> > +         * arrive eventually.
> 
> WTF.  But not a blocker.

Quite. A feature of much of the paging code AFAICT...

> 
> 
> Ian.

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

Reply via email to