qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Multi-threaded user program support?


From: Richard Henderson
Subject: Re: [Qemu-devel] Multi-threaded user program support?
Date: Fri, 19 Aug 2011 09:19:00 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Thunderbird/3.1.11

On 08/18/2011 08:13 PM, Peter Maydell wrote:
> On 19 August 2011 03:59, 陳韋任 <address@hidden> wrote:
>>> More generally and not x86-specific, there are problems with
>>> the multithreaded user-mode support which I suspect exist because
>>> nobody has ever sat down and worked out a coherent design for it,
>>> including what might need to be thread-local and what locking
>>> is required. So the result is that it mostly works but if you
>>
>>  You mean some QEMU data structures need to be thread-local or lock
>> protected in order to emulate guest multi-threaded program correctly?
> 
> Approximately, yes (the third option being "redesign the data
> structure so it can be sensibly protected"). See
> https://bugs.launchpad.net/qemu/+bug/668799 for discussion of
> one example.

I suspect that to make things tractable for i386, which has so
many LOCKable instructions, that we'll also have to implement
at least a compare-and-swap primitive in TCG.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]