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

Re: [Xen-devel] Re: [PATCH] Support swap a page from user spacetools -- Was RE: [RFC][PATCH] Basic support for page offline



On 20/03/2009 10:36, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx> wrote:

>> Anyway, see my email just now, which suggests you map the guest's grant
>> table into your toolstack code, and you can go check for
>> existing grants
>> yourself. As I say there -- if you do that I don't think you need worry
>> about atomicity of the copy.
> 
> Are there any method for user space to get the grant table information?

GNTTABOP_query_size to discover size of the grant table.

GNTTABOP_setup_table to get the frame list (pass in nr_frames from the
query_size operation).

Map the frames and away you go.

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