All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zachary Amsden <zach@vmware.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Chris Wright <chrisw@sous-sol.org>,
	Virtualization Mailing List <virtualization@lists.osdl.org>
Subject: Re: pgd_alloc and [cd]tors
Date: Thu, 16 Nov 2006 18:10:20 -0800	[thread overview]
Message-ID: <455D1A0C.6010001@vmware.com> (raw)
In-Reply-To: <455D0773.2050906@goop.org>

Jeremy Fitzhardinge wrote:
> Is there any real use in having a ctor/dtor for the pgd cache?  Given
> that all pgd allocation happens via pgd_alloc/pgd_free, why not just
> fold the [cd]tor in?
>
> I'm asking because Xen wants pgd[3] to be unshared in the PAE case, and
> it looks to me like the easiest way to handle that is by making
> pgd_alloc/free pv-ops and doing the appropriate thing in the Xen code. 
> Would need to sort out the vmalloc mapping replication as well, but I
> think that's pretty straightforward.
>   

Actually, vmalloc mapping replication is not quite straightforward - you 
have to replicate it under locks and track all pgds using pgd_list if 
you support large pages.

Zach

  parent reply	other threads:[~2006-11-17  2:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-17  0:50 pgd_alloc and [cd]tors Jeremy Fitzhardinge
2006-11-17  1:28 ` Chris Wright
2006-11-17  2:10 ` Zachary Amsden [this message]
2006-11-17  5:04   ` Jeremy Fitzhardinge
2006-11-17  5:14     ` Zachary Amsden
2006-11-17  7:14       ` Jeremy Fitzhardinge
2006-11-17  8:33       ` Gerd Hoffmann

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=455D1A0C.6010001@vmware.com \
    --to=zach@vmware.com \
    --cc=chrisw@sous-sol.org \
    --cc=jeremy@goop.org \
    --cc=virtualization@lists.osdl.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 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.