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: "Dave Lively" <dave.lively@xxxxxxxxx>
Date: Wed, 29 Aug 2007 15:36:55 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 29 Aug 2007 12:37:16 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Qh9PlXFhLOCj2h44jWMVv/QiGUhqiXc+XUFAZ5qKreR+5GvT2JY4wwX+PxFI8IwX9eb4hVqroyPPyKGMupNA1+t93T5Auro1SBBPJFgydnZmuYJHOhFAS7gAF6CoAN130K6XUfVqdQgUS5dP9FGMNTLRknUplQB558DbVu6qbow=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bw51RVRt3+Goi3rfLYiEHcOqYEVcikyP2/3x6O1/sX+xWkhbLPCGvOp2VQIibXxaMVfMGgZY346p5i7qrnBycg5rlO9yYFPkexShfUh0CupfAmr72mEdnxIlnFhvsrvZfF48R2BhIftqvq+ROBiSblmkQ2BFTgbVrwb/erd4gQw=
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
Hi Daniel -
  While I agree this patch wasn't necessary, I was curious why it was
even compiling for us (it was "auto-ported" to our unstable tree
without human intervention) since the patch introduces uses of pthread
data structures but doesn't introduce an include of <pthread.h>.  I
notice tools/ioemu/vl.h is still including <pthread.h> for i386/x86_64
to implement a mapcache lock.  Isn't this now unnecessary for the same
reason?

Dave

On 8/27/07, Daniel P. Berrange <berrange@xxxxxxxxxx> 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.
> --
> |=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
> |=-           Perl modules: http://search.cpan.org/~danberr/              -=|
> |=-               Projects: http://freshmeat.net/~danielpb/               -=|
> |=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=|
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

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

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