All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Samuel Thibault <samuel.thibault@eu.citrix.com>,
	Xen-devel@lists.xensource.com
Subject: Re: Really need to pin page tables?
Date: Tue, 27 May 2008 11:49:33 +0100	[thread overview]
Message-ID: <483BE73D.3090403@goop.org> (raw)
In-Reply-To: <20080527101704.GN4335@implementation.uk.xensource.com>

Samuel Thibault wrote:
> Hello,
>
> In extras/mini-os/arch/x86/mm.c:new_pt_frame, Mini-OS pins its L1,
> L2, and L3 page tables.  Does that really make a difference from the
> Hypervisor point of view?  I mean, once L4 is pinned, pointing to these,
> and thus their content has been checked, is there any performance
> difference?
>   

Shouldn't be.  Pinning an L4 implicitly pins everything else below it.  
The only reason to pin the leafy parts of a pagetable is if you want to 
play games with incrementally pinning the pagetable, or if you want to 
pull them apart and rearrange the pieces for some reason.  For example, 
I do incremental pagetable pins in the Xen/pvops kernel to limit the 
number of pte locks I need to hold at any one time.

    J

  parent reply	other threads:[~2008-05-27 10:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-27 10:17 Really need to pin page tables? Samuel Thibault
2008-05-27 10:47 ` Keir Fraser
2008-05-27 10:49 ` Jeremy Fitzhardinge [this message]
2008-05-27 10:58   ` [PATCH] minios: do not pin page tables [was: Really need to pin page tables?] Samuel Thibault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=483BE73D.3090403@goop.org \
    --to=jeremy@goop.org \
    --cc=Xen-devel@lists.xensource.com \
    --cc=samuel.thibault@eu.citrix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.