All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roberto De Ioris <roberto@unbit.it>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Ingo Molnar <mingo@elte.hu>,
	jeremy@xensource.com, linux-kernel@vger.kernel.org,
	Mirko Iannella <mirko@unbit.it>,
	Alex Nixon <alex.nixon@citrix.com>
Subject: Re: [PATCH] xen: Fix for xen guest with mem > 3.7G
Date: Sun, 14 Sep 2008 23:43:13 +0200	[thread overview]
Message-ID: <1221428593.6036.15.camel@sirius> (raw)
In-Reply-To: <48CD22CF.9030900@goop.org>

On Sun, 2008-09-14 at 07:42 -0700, Jeremy Fitzhardinge wrote:
> PFN_PHYS() can truncate large addresses unless its passed a suitable
> large type.  This is fixed more generally in the patch series
> introducing phys_addr_t, but we need a short-term fix to solve a
> regression.
> 
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
> Cc: roberto@unbit.it
> ---
>  arch/x86/xen/setup.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> ===================================================================
> --- a/arch/x86/xen/setup.c
> +++ b/arch/x86/xen/setup.c
> @@ -42,7 +42,7 @@
>  
>  	e820.nr_map = 0;
>  
> -	e820_add_region(0, PFN_PHYS(max_pfn), E820_RAM);
> +	e820_add_region(0, PFN_PHYS((u64)max_pfn), E820_RAM);
>  
>  	/*
>  	 * Even though this is normal, usable memory under Xen, reserve


In this way you pass a 64bit integer to the function, but max_pfn in
origin is still 32bit.

max_pfn need to be 64bit to supporto more than 4GB

> 
> 
-- 
Roberto De Ioris
http://unbit.it
JID: roberto@jabber.unbit.it


  parent reply	other threads:[~2008-09-14 21:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-13 19:16 Fix for xen guest with mem > 3.7G Roberto De Ioris
2008-09-13 21:09 ` Jeremy Fitzhardinge
2008-09-14 13:21   ` Ingo Molnar
2008-09-14 14:42     ` [PATCH] xen: " Jeremy Fitzhardinge
2008-09-14 14:47       ` Ingo Molnar
2008-09-14 21:43       ` Roberto De Ioris [this message]
2008-09-15  6:09         ` Jeremy Fitzhardinge
2008-09-15  6:20           ` Roberto De Ioris

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=1221428593.6036.15.camel@sirius \
    --to=roberto@unbit.it \
    --cc=alex.nixon@citrix.com \
    --cc=jeremy@goop.org \
    --cc=jeremy@xensource.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mirko@unbit.it \
    /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.