linux-user: Run multi-threaded code on a single core
authorAlexander Graf <agraf@suse.de>
Tue, 10 Jul 2012 18:40:55 +0000 (20:40 +0200)
committerJunfeng Dong <junfeng.dong@intel.com>
Tue, 19 Nov 2013 10:57:37 +0000 (18:57 +0800)
commit8c0bfdd62ef3cdf3f0b810659932c55c80da9537
tree109df212f24fced385e29056aa62f61ddf01547e
parentc4721bdf400b21a4c2a356ad962e3cfba4a0133a
linux-user: Run multi-threaded code on a single core

Running multi-threaded code can easily expose some of the fundamental
breakages in QEMU's design. It's just not a well supported scenario.

So if we pin the whole process to a single host CPU, we guarantee that
we will never have concurrent memory access actually happen. We can still
get scheduled away at any time, so it's no complete guarantee, but apparently
it reduces the odds well enough to get my test cases to pass.

This gets Java 1.7 working for me again on my test box.

Signed-off-by: Alexander Graf <agraf@suse.de>
linux-user/syscall.c