From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: Re: [PATCH] Support swap a page from user spacetools -- Was RE: [RFC][PATCH] Basic support for page offline Date: Fri, 20 Mar 2009 10:40:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Jiang, Yunhong" , Jan Beulich Cc: Tim Deegan , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 20/03/2009 10:36, "Jiang, Yunhong" 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