WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] question on get_page_and_type()

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] question on get_page_and_type()
From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Date: Fri, 13 Apr 2007 21:51:58 -0000
Delivery-date: Fri, 13 Apr 2007 14:51:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2459958.5D6C%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <b8e946230704131225s5bdb78depb401085f221c56c1@xxxxxxxxxxxxxx> <C2459958.5D6C%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acd+AnYdtNWvBOn1EduH7gAWy6hiGQADAu5w
Thread-topic: question on get_page_and_type()
 
Could someone please explain the following
What is the purpose of get_page_and_type(page, domain, PGT_writable_page) and why is it needed when doing a grant copy in __gnttab_copy()?
Why can't we just use get_page() to prevent the page from being freed while we are doing the copy?
Thanks
 
Renato
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel