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: [PATCH] xen: avoid hypercalls when updating unpinned pud

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] xen: avoid hypercalls when updating unpinned pud/pmd
From: Ingo Molnar <mingo@xxxxxxx>
Date: Mon, 2 Jun 2008 13:25:08 +0200
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, x86@xxxxxxxxxx, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>
Delivery-date: Mon, 02 Jun 2008 04:25:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <48409ABB.20301@xxxxxxxx>
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: <48409ABB.20301@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
* Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:

> When operating on an unpinned pagetable (ie, one under construction or 
> destruction), it isn't necessary to use a hypercall to update a 
> pud/pmd entry.  Jan Beulich observed that a similar optimisation 
> avoided many thousands of hypercalls while doing a kernel build.
>
> One tricky part is that early in the kernel boot there's no page 
> structure, so we can't check to see if the page is pinned.  In that 
> case, we just always use the hypercall.
>
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
> Cc: Jan Beulich <jbeulich@xxxxxxxxxx>

applied to tip/x86/xen, thanks Jeremy.

        Ingo

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: [PATCH] xen: avoid hypercalls when updating unpinned pud/pmd, Ingo Molnar <=