I was thinking to some possible (theoretical?) troubles which could happen with UML running on a SMP host - they're due to the code assuming it is running on an UP machine.
1) Over the host we use pipes as synchronization mechanism. Who on the heart assures the "memory barrier" guarantees a lock needs to satisfy? Is it just that i386 is so nice? And anyway, are i386 guarantees enough for the existing code to be safe? Or does the code use them as a simple (slow) wakeup mechanism without memory guarantees? 2) (luckily a non-problem) atomic_t definition: we use i386 code, which can take for granted that if CONFIG_SMP is off it does not need memory barriers and so on (in particular, LOCK_PREFIX is null). With CONFIG_SMP off, if two different UML kernel threads could run on different CPUs things would break, however this cannot happen (and when the kernel migrates UML that must be trasparent to the user, so it is still ok). However this is to keep in mind when having different host thread running. *) Is there any other case to warn about? -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ------------------------------------------------------------------------- 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