From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47915 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzagR-0001HW-AP for qemu-devel@nongnu.org; Tue, 15 Mar 2011 16:17:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzagQ-0001vx-8T for qemu-devel@nongnu.org; Tue, 15 Mar 2011 16:17:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzagP-0001vc-S5 for qemu-devel@nongnu.org; Tue, 15 Mar 2011 16:17:34 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2FKHXfk020208 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 15 Mar 2011 16:17:33 -0400 Received: from playa.tlv.redhat.com (dhcp-3-110.tlv.redhat.com [10.35.3.110]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p2FKHVgu011443 for ; Tue, 15 Mar 2011 16:17:32 -0400 From: Alon Levy Date: Tue, 15 Mar 2011 22:17:04 +0200 Message-Id: <1300220228-27423-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] qxl: implement vga mode without locks List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This patchset removes all uses of unlock/lock in qxl and spice code. It does this by reimplementing the one path that required a lock from the spice-server thread, namely interface_get_command when in vga mode or running without a qxl device. Incidentaly it fixes the assert(cpu_single_env) that happen in the unrelated qemu-kvm repository, because we never drop the global lock in io vmexits. Tested with winxp 32 bit and linux 64 bit vms, including changes between vga mode and qxl mode using chvt. Alon Levy (3): qxl/spice-display: move pipe to ssd qxl/spice: remove qemu_mutex_{un,}lock_iothread around dispatcher hw/qxl-render: drop cursor locks, add TODO's. Uri Lublin (1): qxl: implement get_command in vga mode without locks hw/qxl-render.c | 13 +++-- hw/qxl.c | 150 ++++++++++++++++++++++++++++++++++++++++------------ hw/qxl.h | 4 -- ui/spice-display.c | 20 ++------ ui/spice-display.h | 16 ++++++ 5 files changed, 144 insertions(+), 59 deletions(-) -- 1.7.4.1