qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: Use per-cpu reset handlers.


From: Avi Kivity
Subject: [Qemu-devel] Re: Use per-cpu reset handlers.
Date: Mon, 30 Nov 2009 18:34:33 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4

On 11/30/2009 06:00 PM, Glauber Costa wrote:
The proposal in this patch is to add a system_reset caller that only
resets state related to the cpu. This will guarantee that does functions
are called from the cpu-threads, not the I/O thread.

In principle, it might seem close to the remote execution mechanism, but:
  * It does not involve any extra signalling, so it should be faster.
  * The cpu is guaranteed to be stopped, so it is much less racy.
  * What runs where becomes more explicit.
  * This is much, much less racy

The previous implementation was giving me races on reset. This one makes
it work flawlesly w.r.t reset.

Looks pretty good.

--
error compiling committee.c: too many arguments to function





reply via email to

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