From: Ingo Molnar Subject: Re: [PATCH] xen: avoid hypercalls when updating unpinned pud/pmd Date: Mon, 2 Jun 2008 13:25:08 +0200 Message-ID: <20080602112508.GD18586@elte.hu> References: <48409ABB.20301@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <48409ABB.20301@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: Xen-devel , x86@kernel.org, Linux Kernel Mailing List , Jan Beulich List-Id: xen-devel@lists.xenproject.org * Jeremy Fitzhardinge 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 > Cc: Jan Beulich applied to tip/x86/xen, thanks Jeremy. Ingo