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

Re: [Xen-devel] RE: transferring ownership of domheap pages


  • To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • Date: Fri, 13 Feb 2009 08:54:20 +0000
  • Cc:
  • Delivery-date: Fri, 13 Feb 2009 00:54:45 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcmNjJPASbbJUQIHTMStvYjFVVCx9AALBToX
  • Thread-topic: [Xen-devel] RE: transferring ownership of domheap pages

Yeah, that's pretty... optimistic. ;-) Use steal_page() plus whatever bits
of gnttab_transfer() you think you might need. If you can cleanly abstract
that into a common function all the better, but you probably won't need much
code in addition to steal_page() anyway.

 -- Keir

On 13/02/2009 03:37, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> Here's a first cut.  Works only from anon to non-anon
> or non-anon to anon (not non-anon1 to non-anon2).
> 
>> -----Original Message-----
>> From: Dan Magenheimer
>> Sent: Thursday, February 12, 2009 5:59 PM
>> To: Xen-Devel (E-mail)
>> Subject: transferring ownership of domheap pages
>> 
>> 
>> I'd like to have routines to transfer ownership
>> of a page both from domain D1 to anonymous and
>> from anonymous to domain D2, without the necessity
>> of doing a free_domheap_pages followed by an
>> alloc_domheap_pages (primarily because I don't
>> want to scrub the page as I know it will be
>> immediately overwritten by the new owner).
>> The anon-to-D2 would fail (return NULL) if
>> D2 is fully allocated.
>> 
>> Any problems to watch out for?
>> 
>> Thanks,
>> Dan
>> 
>> P.S. Only has to work on 64-bit Xen if that matters.
>> 



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