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

Re: [Xen-devel] How to deallocate memory shared between domain and xen




On 11 Aug 2005, at 04:41, Santos, Jose Renato G wrote:

 OK. For now I will not explictly de-allocate the shared memory,
  and let the memory be deallocated when the domain dies.
  I am assuming nothing special has to be done and the memory gets
  deallocated automaticaly when the domain dies
  (SHARE_PFN_WITH_DOMAIN() seems to be including the shared
  page in the list of pages owned by the domain which
  should be automatically de-alocated when the domain dies, right?).
  Will this also cause the memory to be returned to the Xen heap?

No, you need to deallocate yourself. Add a hook function off domain_destruct(), and do any necessary deallocation there. The refcnts are to make sure the domain isn;t killed while other domains may have references to its xen-heap pages.

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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