WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH][QEMU] Make active-timers thread-safe

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][QEMU] Make active-timers thread-safe
From: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>
Date: Tue, 28 Aug 2007 07:18:59 -0400
Cc: Gary Grebus <ggrebus@xxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 28 Aug 2007 04:19:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070827193242.GH9043@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <46D31ED2.8070602@xxxxxxxxxxxxxxx> <20070827193242.GH9043@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.5 (X11/20070719)
After speaking with the original developer of this patch, it may have been a mistake to port it forward from the 3.1 codebase.

This submission was premature.
We will do some investigation to see if this is still a problem in unstable.

Apologies,
Ben

Daniel P. Berrange wrote:
On Mon, Aug 27, 2007 at 02:58:26PM -0400, Ben Guthro wrote:
Protect active_timers[] lists with mutexes so timers can be safely used from different threads.

What code in QEMU is actually still using threads ? There used to be a Xen
specific patch to the IDE layer to perform DMA ops in threads, but that was
removed when xen-unstable synced with QEMU 0.9.0. Not aware of anything
else using threads in the QEMU device model - its pretty dangerous because
QEMU's internal data structures basically all assume single-threaded access.

Regards,
Dan.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>