link lguest example launcher non-static
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 24 Jul 2007 01:43:56 +0000 (18:43 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 24 Jul 2007 19:24:59 +0000 (12:24 -0700)
commit6570c45995a6339597462434a81f358a38941ac4
treee1d963379a71e847f92c447a7ebffeb45bdf1d0f
parent6ddb23c78aeef40f549c5ad22a3e8dfa1f8297e0
link lguest example launcher non-static

S.Caglar Onur points out that many distributions don't ship a static
zlib.  Unfortunately the launcher currently maps virtual device memory
where shared libraries want to go.

The solution is to pre-scan the args to figure out how much memory we
have, then allocate devices above that, rather than down from the top
possible address.  This also turns out to be simpler.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/lguest/Makefile
Documentation/lguest/lguest.c