* [uml-devel] [PATCH] uml: problem with 2G/2G host address space
@ 2006-04-09 10:57 Joris van Rantwijk
2006-04-09 17:01 ` Jeff Dike
0 siblings, 1 reply; 5+ messages in thread
From: Joris van Rantwijk @ 2006-04-09 10:57 UTC (permalink / raw)
To: user-mode-linux-devel
Hello,
I believe the current version (2.6.16.2) of UML does not work properly
on a i386 host with non-3G/1G address space split. The included patch
attempts to fix this.
On a i386 2.6.16.2 host configured with "3G/1G user/kernel split for
full 1G low memory" (VMSPLIT_3G_OPT), I found that UML would crash
on boot with the following error message:
mapping mmap stub failed, errno = 12
It soon made sense to me that a 3G/1G configured UML would crash like
this, but I then found that UML 2.6.16.2 configured for 2G/2G crashed
in exactly the same way. I think this is due to the fact that STUB_CODE
and STUB_DATA are fixed at the 3G/1G settings. After changing these
settings, everything seems to work properly in 2G/2G mode.
Bye,
Joris.
diff -urN -U 5 linux-2.6.16.2/arch/um/Kconfig.i386 linux-2.6.16.2-joris/arch/um/Kconfig.i386
--- linux-2.6.16.2/arch/um/Kconfig.i386 2006-04-07 18:56:47.000000000 +0200
+++ linux-2.6.16.2-joris/arch/um/Kconfig.i386 2006-04-09 11:33:46.000000000 +0200
@@ -33,15 +33,17 @@
However, this it experimental on 32-bit architectures, so if unsure say
N (on x86-64 it's automatically enabled, instead, as it's safe there).
config STUB_CODE
hex
- default 0xbfffe000
+ default 0xbfffe000 if !HOST_2G_2G
+ default 0x7fffe000 if HOST_2G_2G
config STUB_DATA
hex
- default 0xbffff000
+ default 0xbffff000 if !HOST_2G_2G
+ default 0x7ffff000 if HOST_2G_2G
config STUB_START
hex
default STUB_CODE
--
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] [PATCH] uml: problem with 2G/2G host address space
2006-04-09 10:57 [uml-devel] [PATCH] uml: problem with 2G/2G host address space Joris van Rantwijk
@ 2006-04-09 17:01 ` Jeff Dike
2006-04-19 9:52 ` Blaisorblade
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Dike @ 2006-04-09 17:01 UTC (permalink / raw)
To: Joris van Rantwijk; +Cc: user-mode-linux-devel
On Sun, Apr 09, 2006 at 12:57:55PM +0200, Joris van Rantwijk wrote:
> It soon made sense to me that a 3G/1G configured UML would crash like
> this, but I then found that UML 2.6.16.2 configured for 2G/2G crashed
> in exactly the same way. I think this is due to the fact that STUB_CODE
> and STUB_DATA are fixed at the 3G/1G settings. After changing these
> settings, everything seems to work properly in 2G/2G mode.
Your analysis is correct, and the patch is fine as far as it goes, but
we were talking about this a week or so ago about detecting the host
address space split at runtime. There's a lot more potential
flexibility there than just 3/1 and 2/2.
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] [PATCH] uml: problem with 2G/2G host address space
2006-04-09 17:01 ` Jeff Dike
@ 2006-04-19 9:52 ` Blaisorblade
2006-04-25 20:19 ` Jeff Dike
0 siblings, 1 reply; 5+ messages in thread
From: Blaisorblade @ 2006-04-19 9:52 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Jeff Dike, Joris van Rantwijk
On Sunday 09 April 2006 19:01, Jeff Dike wrote:
> On Sun, Apr 09, 2006 at 12:57:55PM +0200, Joris van Rantwijk wrote:
> > It soon made sense to me that a 3G/1G configured UML would crash like
> > this, but I then found that UML 2.6.16.2 configured for 2G/2G crashed
> > in exactly the same way. I think this is due to the fact that STUB_CODE
> > and STUB_DATA are fixed at the 3G/1G settings. After changing these
> > settings, everything seems to work properly in 2G/2G mode.
> Your analysis is correct, and the patch is fine as far as it goes, but
> we were talking about this a week or so ago about detecting the host
> address space split at runtime. There's a lot more potential
> flexibility there than just 3/1 and 2/2.
Jeff, for now please merge a band-aid patch (and also add an option to support
1G/3G, while at it).
Delaying the band-aid only makes sense when you've got the proper fix reaching
completion or when the band-aid is clearly an hack and hinders maintenability
in a relevant way - we don't want to keep these configurations "unsupported".
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] [PATCH] uml: problem with 2G/2G host address space
2006-04-19 9:52 ` Blaisorblade
@ 2006-04-25 20:19 ` Jeff Dike
2006-04-26 2:58 ` Jeff Dike
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Dike @ 2006-04-25 20:19 UTC (permalink / raw)
To: Blaisorblade; +Cc: user-mode-linux-devel, Joris van Rantwijk
On Wed, Apr 19, 2006 at 11:52:00AM +0200, Blaisorblade wrote:
> Jeff, for now please merge a band-aid patch (and also add an option
> to support 1G/3G, while at it).
OK, do you have such a patch handy? I know I saw one go by, but some
grepping didn't turn it up.
Jeff
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] [PATCH] uml: problem with 2G/2G host address space
2006-04-25 20:19 ` Jeff Dike
@ 2006-04-26 2:58 ` Jeff Dike
0 siblings, 0 replies; 5+ messages in thread
From: Jeff Dike @ 2006-04-26 2:58 UTC (permalink / raw)
Cc: Blaisorblade, user-mode-linux-devel, Joris van Rantwijk
On Tue, Apr 25, 2006 at 04:19:22PM -0400, Jeff Dike wrote:
> OK, do you have such a patch handy? I know I saw one go by, but some
> grepping didn't turn it up.
Nevermind, I found it - it was the start of this thread.
Jeff
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-04-26 3:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-09 10:57 [uml-devel] [PATCH] uml: problem with 2G/2G host address space Joris van Rantwijk
2006-04-09 17:01 ` Jeff Dike
2006-04-19 9:52 ` Blaisorblade
2006-04-25 20:19 ` Jeff Dike
2006-04-26 2:58 ` Jeff Dike
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.