From patchwork Wed Apr 18 10:26:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 153467 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 0B67FB6FC9 for ; Wed, 18 Apr 2012 20:26:41 +1000 (EST) Received: from localhost ([::1]:58917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKS5u-0005pp-PN for incoming@patchwork.ozlabs.org; Wed, 18 Apr 2012 06:26:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKS5a-0005dA-TJ for qemu-devel@nongnu.org; Wed, 18 Apr 2012 06:26:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKS5W-00031J-AN for qemu-devel@nongnu.org; Wed, 18 Apr 2012 06:26:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKS5W-00030n-2A for qemu-devel@nongnu.org; Wed, 18 Apr 2012 06:26:14 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3IAQC9o002815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 18 Apr 2012 06:26:12 -0400 Received: from rincewind.home.kraxel.org (ovpn-116-33.ams2.redhat.com [10.36.116.33]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q3IAQBsu004442; Wed, 18 Apr 2012 06:26:12 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 4CE2E40A98; Wed, 18 Apr 2012 12:26:10 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Wed, 18 Apr 2012 12:26:09 +0200 Message-Id: <1334744769-8301-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1334744769-8301-1-git-send-email-kraxel@redhat.com> References: <1334744769-8301-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Alon Levy , Gerd Hoffmann Subject: [Qemu-devel] [PATCH 3/3] 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 From: Alon Levy 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 Signed-off-by: Gerd Hoffmann --- hw/qxl-render.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/qxl-render.c b/hw/qxl-render.c index 28ab182..f7f1bfd 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)) {