Re: [Xen-devel] [PATCH] xen/p2m: Check __brk_limit before allocating.

2012-07-26 Thread Konrad Rzeszutek Wilk
On Thu, Jul 26, 2012 at 08:53:02AM +0100, Ian Campbell wrote: > On Tue, 2012-07-24 at 16:23 -0400, Konrad Rzeszutek Wilk wrote: > > diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c > > index 64effdc..b5bb26c 100644 > > --- a/arch/x86/xen/p2m.c > > +++ b/arch/x86/xen/p2m.c > > @@ -498,7 +498,14

Re: [PATCH] xen/p2m: Check __brk_limit before allocating.

2012-07-26 Thread Ian Campbell
On Tue, 2012-07-24 at 16:23 -0400, Konrad Rzeszutek Wilk wrote: > diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c > index 64effdc..b5bb26c 100644 > --- a/arch/x86/xen/p2m.c > +++ b/arch/x86/xen/p2m.c > @@ -498,7 +498,14 @@ static bool alloc_p2m(unsigned long pfn) > > return true; > }

[PATCH] xen/p2m: Check __brk_limit before allocating.

2012-07-24 Thread Konrad Rzeszutek Wilk
The P2M code is smart enough to return that it cannot allocate anymore and it can perculate up the stack without trouble. So check the __brk_limit values before allocating from extend_brk. This allows us to boot on machines where we do not have enough __brk space. This means that instead of gettin