linux-um archives
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade@yahoo.it>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] UniProcessor UML running on SMP host: things to care about in the code
Date: Sat, 26 Aug 2006 12:27:39 +0200	[thread overview]
Message-ID: <200608261227.39263.blaisorblade@yahoo.it> (raw)

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

                 reply	other threads:[~2006-08-26 10:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200608261227.39263.blaisorblade@yahoo.it \
    --to=blaisorblade@yahoo.it \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox