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] Re: pv_ops & gntdev?

To: Gerd Hoffmann <kraxel@xxxxxxxxxx>
Subject: [Xen-devel] Re: pv_ops & gntdev?
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Wed, 25 Feb 2009 12:06:21 -0800
Cc: Xen Development Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 25 Feb 2009 12:06:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49A58FFF.3050604@xxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <49A44030.2070709@xxxxxxxxxx> <49A4640E.1000807@xxxxxxxx> <49A470DD.2000008@xxxxxxxxxx> <49A517F6.30005@xxxxxxxxxx> <49A58506.2020407@xxxxxxxx> <49A58FFF.3050604@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20090105)
Gerd Hoffmann wrote:
Yes, my plan is:

  1. when installing a grant in a pte page, allocate a shadow page and
     hang it off page->private; also set a page flag on the pgd page
     flags (steal something spare)

pgd or pte page flags?  or both?

Just pgd, so that the unpinner can see it needs to make a second pass. At the pte level, looking for a non-NULL page->private should be enough.

  3. when clearing the pte, check to see if there's a grant handle and
     zap it

That needs a new paravirt hook I think ...

Hm, I hope not.  Doesn't it always end up using set_pte*?

  4. when unpinning the pagetable, check to see if there's the "grant
     mapping" flag in the pgd, and do a grant-zap pass before unpinning

ok.

Prelimary patches by chance?

No, I haven't got around to implementing this at all.

Thanks,
   J

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>