mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: Ian Pratt <Ian.Pratt@cl.cam.ac.uk>,
	linux-kernel@vger.kernel.org, akpm@osdl.org,
	Keir.Fraser@cl.cam.ac.uk, Christian.Limpach@cl.cam.ac.uk
Subject: Re: [patch 1] Xen core patch : ptep_establish_new
Date: Fri, 19 Nov 2004 09:06:22 +1100	[thread overview]
Message-ID: <16797.7390.769118.230947@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20041118101109.GA20859@infradead.org>

Christoph Hellwig writes:

> On Wed, Nov 17, 2004 at 11:46:50PM +0000, Ian Pratt wrote:
> > 
> > This patch adds 'ptep_establish_new', in keeping with the
> > existing 'ptep_establish', but for use where a mapping is being
> > established where there was previously none present. This
> > function is useful (rather than just using set_pte) because
> > having the virtual address available enables a very important
> > optimisation for arch-xen. We introduce
> > HAVE_ARCH_PTEP_ESTABLISH_NEW and define a generic implementation
> > in asm-generic/pgtable.h, following the pattern of the existing
> > ptep_establish.
> 
> What would be the problem of always passing the virtual address to
> ptep_establish?  We already have a rather twisted maze of pte manipulation
> macros.

Dave Miller had a patch that passes the mm and virtual address to
set_pte.  That helps on sparc64 and ppc/ppc64, and it sounds like it
would help here too.

Paul.

      parent reply	other threads:[~2004-11-18 22:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-17 23:46 Ian Pratt
2004-11-18  2:56 ` Andrew Morton
2004-11-18 10:11 ` Christoph Hellwig
2004-11-18 10:26   ` Ian Pratt
2004-11-18 10:29     ` Keir Fraser
2004-11-18 22:06   ` Paul Mackerras [this message]

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=16797.7390.769118.230947@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=Christian.Limpach@cl.cam.ac.uk \
    --cc=Ian.Pratt@cl.cam.ac.uk \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=akpm@osdl.org \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®