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

RE: [Xen-devel] question on get_page_and_type()


  • To: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxx>
  • Date: Sat, 14 Apr 2007 04:15:10 +0100
  • Delivery-date: Fri, 13 Apr 2007 20:14:15 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acd+AnYdtNWvBOn1EduH7gAWy6hiGQADAu5wAA0WghA=
  • Thread-topic: [Xen-devel] 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?

You don't want guests receiving data into pages containing pagetables,
hence we make sure we can get the page as a writeable page.

Ian
 

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