From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44531 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvv1A-0007CE-9o for qemu-devel@nongnu.org; Sat, 05 Mar 2011 12:11:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pvv18-0003cu-Rs for qemu-devel@nongnu.org; Sat, 05 Mar 2011 12:11:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pvv18-0003ci-Dj for qemu-devel@nongnu.org; Sat, 05 Mar 2011 12:11:46 -0500 Message-ID: <4D726ECD.1010707@redhat.com> Date: Sat, 05 Mar 2011 18:11:41 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <4D68F20D.2020401@web.de> <20110305163558.GA4607@amt.cnet> In-Reply-To: <20110305163558.GA4607@amt.cnet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: kvm crashes with spice while loading qxl List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcelo Tosatti Cc: kvm@vger.kernel.org, qemu-devel , xming , Jan Kiszka , Avi Kivity , Gerd Hoffmann On 03/05/2011 05:35 PM, Marcelo Tosatti wrote: > TCG and KVM execution behaviour can become more > similar wrt locking by dropping qemu_global_mutex during generation and > execution of TBs. > > Of course for memory or PIO accesses from vcpu context qemu_global_mutex > must be acquired. -icount already has most of the machinery needed for this. At this point, I think people interested in TCG should choose between staying with legacy and gaining a bit more speed for uniprocessor simulation, or following KVM with a more complex architecture and finer-grained locking---but also a more future-proof design. BTW, I'll post soon patches for iothread -icount that work (at least in my tests), are much simpler than anything I posted so far, and hopefully will show that iothread is not fundamentally incompatible with anything (and in fact can simplify things much more than complicate them). > With that in place, it becomes easier to justify further improvements > regarding parallelization, such as using a read-write lock for > l1_phys_map / phys_page_find_alloc. Or URCU (userspace RCU), too. Paolo