From: Rusty Russell <rusty@rustcorp.com.au>
To: Chris Wright <chrisw@sous-sol.org>
Cc: Andrew Morton <akpm@osdl.org>,
jeremy@xensource.com, linux-kernel@vger.kernel.org,
Christian.Limpach@cl.cam.ac.uk, clameter@sgi.com,
ebiederm@xmission.com, kraxel@suse.de, hollisb@us.ibm.com,
ian.pratt@xensource.com, zach@vmware.com
Subject: Re: [PATCH 7 of 13] Make __FIXADDR_TOP variable to allow it to make space for a hypervisor
Date: Wed, 02 Aug 2006 17:20:05 +1000 [thread overview]
Message-ID: <1154503206.2570.65.camel@localhost.localdomain> (raw)
In-Reply-To: <20060802070147.GM2654@sequoia.sous-sol.org>
On Wed, 2006-08-02 at 00:01 -0700, Chris Wright wrote:
> Here's an updated patch. Rather than use __FIXADDR_TOP to adjust for
> MAXMEM, directly update __VMALLOC_RESERVE which is used to reserve the
> space for vmalloc, iomap, and fixmap (as comments aptly point out). I
> tested this with a bunch of configurations, and booted a XenoLinux
> kernel with this patch as well.
Just one minor point:
> +void set_fixaddr_top(unsigned long top)
> +{
> + BUG_ON(fixmaps > 0);
> +#ifdef CONFIG_COMPAT_VDSO
> + BUG_ON(top - PAGE_SIZE != __FIXADDR_TOP);
> +#else
> + __FIXADDR_TOP = top - PAGE_SIZE;
> + __VMALLOC_RESERVE -= top;
> +#endif
> }
This no longer seems to be an appropriate name. How about
set_address_top_reserve or something?
void set_address_top_reserve(unsigned long reserve)
{
BUG_ON(fixmaps > 0);
#ifdef CONFIG_COMPAT_VDSO
BUG_ON(reserve != 0);
#else
__FIXADDR_TOP = -reserve - PAGE_SIZE;
__VMALLOC_RESERVE += reserve;
#endif
}
(I *think* I got the logic here correct).
Rusty.
--
Help! Save Australia from the worst of the DMCA: http://linux.org.au/law
next prev parent reply other threads:[~2006-08-02 7:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <patchbomb.1154421371@ezr.goop.org>
[not found] ` <b6c100bb5ca5e2839ac8.1154421378@ezr.goop.org>
2006-08-01 9:03 ` Chris Wright
2006-08-01 14:34 ` Andrew Morton
2006-08-01 21:37 ` Chris Wright
2006-08-02 1:47 ` Rusty Russell
2006-08-02 7:01 ` Chris Wright
2006-08-02 7:20 ` Rusty Russell [this message]
2006-08-02 8:26 ` Chris Wright
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=1154503206.2570.65.camel@localhost.localdomain \
--to=rusty@rustcorp.com.au \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=akpm@osdl.org \
--cc=chrisw@sous-sol.org \
--cc=clameter@sgi.com \
--cc=ebiederm@xmission.com \
--cc=hollisb@us.ibm.com \
--cc=ian.pratt@xensource.com \
--cc=jeremy@xensource.com \
--cc=kraxel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=zach@vmware.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 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®