From: Rusty Russell <rusty@rustcorp.com.au>
To: Matias Zabaljauregui <matias.zabaljauregui@cern.ch>
Cc: virtualization@lists.linux-foundation.org
Subject: Re: Lguest
Date: Fri, 29 Jun 2007 22:11:54 +1000 [thread overview]
Message-ID: <1183119114.10054.18.camel@localhost.localdomain> (raw)
In-Reply-To: <21a166410706281003p79949542t2f90bfe6e2d7bda3@mail.gmail.com>
On Thu, 2007-06-28 at 19:03 +0200, Matias Zabaljauregui wrote:
> Hello Rusty,
>
> I'have just started to read the code (and I'm not an expert kernel
> programmer), but is this condition ok ?
>
>
> (function setup_pagetables(), on file Documentation/lguest.c )
>
> /* Ideally we map all physical memory starting at page_offset.
> * However, if page_offset is 0xC0000000 we can only map 1G of
> physical
> * (0xC0000000 + 1G overflows). */
>
> if (mem > -page_offset)
> mapped_pages = mem/getpagesize();
> else
> mapped_pages = -page_offset/getpagesize();
Hi Matias,
I think so: these are unsigned values, so "-page_offset" is the address
space available for kernel memory (usually 1G). It's a little
strange-looking, I admit.
Hope that helps,
Rusty.
prev parent reply other threads:[~2007-06-29 12:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-28 17:03 Lguest Matias Zabaljauregui
2007-06-29 12:11 ` Rusty Russell [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=1183119114.10054.18.camel@localhost.localdomain \
--to=rusty@rustcorp.com.au \
--cc=matias.zabaljauregui@cern.ch \
--cc=virtualization@lists.linux-foundation.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