From patchwork Wed Apr 18 09:27:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 153444 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 52CE4B6FAA for ; Wed, 18 Apr 2012 19:27:24 +1000 (EST) Received: from localhost ([::1]:44136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKRAY-0002xh-73 for incoming@patchwork.ozlabs.org; Wed, 18 Apr 2012 05:27:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKRAN-0002xZ-GJ for qemu-devel@nongnu.org; Wed, 18 Apr 2012 05:27:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKRAI-0007wg-SY for qemu-devel@nongnu.org; Wed, 18 Apr 2012 05:27:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKRAI-0007wZ-KU for qemu-devel@nongnu.org; Wed, 18 Apr 2012 05:27:06 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3I9R4Fw020657 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Apr 2012 05:27:04 -0400 Received: from garlic.redhat.com (vpn-11-9.rdu.redhat.com [10.11.11.9]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q3I9R1cg028897; Wed, 18 Apr 2012 05:27:02 -0400 From: Alon Levy To: qemu-devel@nongnu.org, nicolas prochazka , kraxel@redhat.com Date: Wed, 18 Apr 2012 12:27:00 +0300 Message-Id: <1334741220-12094-1-git-send-email-alevy@redhat.com> In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2] qxl-render: fix broken vnc+spice since commit f934493 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Notify any listeners such as vnc that the displaysurface has been changed, otherwise they will segfault when first accessing the freed old displaysurface data. Signed-off-by: Alon Levy --- hw/qxl-render.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/qxl-render.c b/hw/qxl-render.c index 04eca5c..0331c23 100644 --- a/hw/qxl-render.c +++ b/hw/qxl-render.c @@ -127,6 +127,7 @@ static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl) qxl->guest_primary.surface.width, qxl->guest_primary.surface.height); } + dpy_resize(vga->ds); } for (i = 0; i < qxl->num_dirty_rects; i++) { if (qemu_spice_rect_is_empty(qxl->dirty+i)) {