* Re: xen: do not create the extra e820 region at an addr lower than 4G
@ 2011-04-07 8:08 Ian Campbell
2011-04-07 10:14 ` Stefano Stabellini
0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2011-04-07 8:08 UTC (permalink / raw)
To: Stefano Stabellini, Konrad Rzeszutek Wilk; +Cc: xen-devel
I can't find this patch on any mailing list to respond to so starting a
new thread. In case I've not missed it but instead it really wasn't
posted -- in the future can we try and ensure that any patches have been
posted at least once. Same for the pull request, it should go to a list.
BTW the version in Konrad's tree is Stefano's 2.6.39-rc1-fixes branch
but Stefano's tree only has 2.6.39-rc2-fixes now -- is that important?
Anyway, the patch itself:
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
index 9c38bd1..f831568 100644
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -229,7 +229,7 @@ char * __init xen_memory_setup(void)
memcpy(map_raw, map, sizeof(map));
e820.nr_map = 0;
- xen_extra_mem_start = mem_end;
+ xen_extra_mem_start = mem_end < (1UL<<32) ? (1UL<<32) : mem_end;
for (i = 0; i < memmap.nr_entries; i++) {
unsigned long long end;
"(1UL<<32)" will overflow on a 32 bit kernel.
Oh hang on... that's the difference between the -rc1 and -rc2 versions
of Stefano's branches:
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
index f831568..ee44c56 100644
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -229,7 +229,7 @@ char * __init xen_memory_setup(void)
memcpy(map_raw, map, sizeof(map));
e820.nr_map = 0;
- xen_extra_mem_start = mem_end < (1UL<<32) ? (1UL<<32) : mem_end;
+ xen_extra_mem_start = max((1ULL <<32), mem_end);
for (i = 0; i < memmap.nr_entries; i++) {
unsigned long long end;
So I guess it was important!
(also the whitespace in "(1ULL <<32)" is a bit funky, checkpatch whinges
too)
Ian.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: xen: do not create the extra e820 region at an addr lower than 4G
2011-04-07 8:08 xen: do not create the extra e820 region at an addr lower than 4G Ian Campbell
@ 2011-04-07 10:14 ` Stefano Stabellini
2011-04-07 10:21 ` Ian Campbell
0 siblings, 1 reply; 4+ messages in thread
From: Stefano Stabellini @ 2011-04-07 10:14 UTC (permalink / raw)
To: Ian Campbell; +Cc: Konrad, xen-devel, Wilk, Stefano Stabellini
On Thu, 7 Apr 2011, Ian Campbell wrote:
> I can't find this patch on any mailing list to respond to so starting a
> new thread. In case I've not missed it but instead it really wasn't
> posted -- in the future can we try and ensure that any patches have been
> posted at least once. Same for the pull request, it should go to a list.
This patch hasn't been sent anywhere yet because it is part of a series
that is not ready yet.
> BTW the version in Konrad's tree is Stefano's 2.6.39-rc1-fixes branch
> but Stefano's tree only has 2.6.39-rc2-fixes now -- is that important?
I rebased 2.6.39-rc1-fixes on 2.6.39-rc2, dropped 2.6.39-rc1-fixes, and
still doing some refactoring (and force-pushing) until the series is
ready to be sent upstream.
> Anyway, the patch itself:
>
> diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
> index 9c38bd1..f831568 100644
> --- a/arch/x86/xen/setup.c
> +++ b/arch/x86/xen/setup.c
> @@ -229,7 +229,7 @@ char * __init xen_memory_setup(void)
>
> memcpy(map_raw, map, sizeof(map));
> e820.nr_map = 0;
> - xen_extra_mem_start = mem_end;
> + xen_extra_mem_start = mem_end < (1UL<<32) ? (1UL<<32) : mem_end;
> for (i = 0; i < memmap.nr_entries; i++) {
> unsigned long long end;
>
> "(1UL<<32)" will overflow on a 32 bit kernel.
>
> Oh hang on... that's the difference between the -rc1 and -rc2 versions
> of Stefano's branches:
>
> diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
> index f831568..ee44c56 100644
> --- a/arch/x86/xen/setup.c
> +++ b/arch/x86/xen/setup.c
> @@ -229,7 +229,7 @@ char * __init xen_memory_setup(void)
>
> memcpy(map_raw, map, sizeof(map));
> e820.nr_map = 0;
> - xen_extra_mem_start = mem_end < (1UL<<32) ? (1UL<<32) : mem_end;
> + xen_extra_mem_start = max((1ULL <<32), mem_end);
> for (i = 0; i < memmap.nr_entries; i++) {
> unsigned long long end;
>
> So I guess it was important!
>
> (also the whitespace in "(1ULL <<32)" is a bit funky, checkpatch whinges
> too)
thanks, I'll fix
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: xen: do not create the extra e820 region at an addr lower than 4G
2011-04-07 10:14 ` Stefano Stabellini
@ 2011-04-07 10:21 ` Ian Campbell
2011-04-07 14:46 ` Konrad Rzeszutek Wilk
0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2011-04-07 10:21 UTC (permalink / raw)
To: Stefano Stabellini; +Cc: xen-devel, Konrad Rzeszutek Wilk
On Thu, 2011-04-07 at 11:14 +0100, Stefano Stabellini wrote:
> On Thu, 7 Apr 2011, Ian Campbell wrote:
> > I can't find this patch on any mailing list to respond to so starting a
> > new thread. In case I've not missed it but instead it really wasn't
> > posted -- in the future can we try and ensure that any patches have been
> > posted at least once. Same for the pull request, it should go to a list.
>
> This patch hasn't been sent anywhere yet because it is part of a series
> that is not ready yet.
OK, I was concerned because I saw it get merged in Konrad's tree...
> > (also the whitespace in "(1ULL <<32)" is a bit funky, checkpatch whinges
> > too)
>
> thanks, I'll fix
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: xen: do not create the extra e820 region at an addr lower than 4G
2011-04-07 10:21 ` Ian Campbell
@ 2011-04-07 14:46 ` Konrad Rzeszutek Wilk
0 siblings, 0 replies; 4+ messages in thread
From: Konrad Rzeszutek Wilk @ 2011-04-07 14:46 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel, Stefano Stabellini
On Thu, Apr 07, 2011 at 11:21:48AM +0100, Ian Campbell wrote:
> On Thu, 2011-04-07 at 11:14 +0100, Stefano Stabellini wrote:
> > On Thu, 7 Apr 2011, Ian Campbell wrote:
> > > I can't find this patch on any mailing list to respond to so starting a
> > > new thread. In case I've not missed it but instead it really wasn't
> > > posted -- in the future can we try and ensure that any patches have been
> > > posted at least once. Same for the pull request, it should go to a list.
> >
> > This patch hasn't been sent anywhere yet because it is part of a series
> > that is not ready yet.
>
> OK, I was concerned because I saw it get merged in Konrad's tree...
Oversight. Will back it out and use the rc2 version.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-07 14:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-07 8:08 xen: do not create the extra e820 region at an addr lower than 4G Ian Campbell
2011-04-07 10:14 ` Stefano Stabellini
2011-04-07 10:21 ` Ian Campbell
2011-04-07 14:46 ` Konrad Rzeszutek Wilk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).