From patchwork Wed Apr 18 09:24:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 153443 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 9E4A3B6FAA for ; Wed, 18 Apr 2012 19:24:47 +1000 (EST) Received: from localhost ([::1]:41392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKR81-0001PH-Gn for incoming@patchwork.ozlabs.org; Wed, 18 Apr 2012 05:24:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKR7u-0001P4-FM for qemu-devel@nongnu.org; Wed, 18 Apr 2012 05:24:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKR7p-0006k7-Ms for qemu-devel@nongnu.org; Wed, 18 Apr 2012 05:24:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKR7p-0006jy-Es for qemu-devel@nongnu.org; Wed, 18 Apr 2012 05:24:33 -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 q3I9OUTv006019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Apr 2012 05:24:31 -0400 Received: from garlic.redhat.com (vpn-11-9.rdu.redhat.com [10.11.11.9]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q3I9OSa5014695; Wed, 18 Apr 2012 05:24:29 -0400 From: Alon Levy To: qemu-devel@nongnu.org, nicolas prochazka , kraxel@redhat.com Date: Wed, 18 Apr 2012 12:24:28 +0300 Message-Id: <1334741068-11762-1-git-send-email-alevy@redhat.com> In-Reply-To: References: 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 Subject: [Qemu-devel] [PATCH] 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..ee9ea6d 100644 --- a/hw/qxl-render.c +++ b/hw/qxl-render.c @@ -126,6 +126,7 @@ static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl) qemu_resize_displaysurface(vga->ds, qxl->guest_primary.surface.width, qxl->guest_primary.surface.height); + dpy_resize(vga->ds); } } for (i = 0; i < qxl->num_dirty_rects; i++) {