On 02/11/2011 20:52, Paolo Bonzini wrote: > On 11/02/2011 07:01 PM, Peter Maydell wrote: >> On 2 November 2011 17:45, Paolo Bonzini<pbonz...@redhat.com> wrote: >>> The rest is always done in the iothread. The iothread will then >>> suspend/resume the VCPU thread around the unchaining, so what matters is (in >>> Unix parlance) signal-safety of the unchaining, not thread-safety. >> >> The unchaining is neither signal-safe nor thread-safe... > > Yeah, but there's nothing Windows-specific in that.
That's very important, I don't see why it is different between Linux and Windows here. Also, why running all the threads on the same CPU would make the code thread-safe? -- Fabien Chouteau