From patchwork Tue Jul 12 13:55:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 104377 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 64C5B1007D1 for ; Wed, 13 Jul 2011 00:24:21 +1000 (EST) Received: from localhost ([::1]:36983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgdsm-0002aK-MP for incoming@patchwork.ozlabs.org; Tue, 12 Jul 2011 10:24:16 -0400 Received: from eggs.gnu.org ([140.186.70.92]:33494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgdRi-0004uU-S8 for qemu-devel@nongnu.org; Tue, 12 Jul 2011 09:56:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgdRf-0008Mg-Jh for qemu-devel@nongnu.org; Tue, 12 Jul 2011 09:56:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgdRf-0008MM-3r for qemu-devel@nongnu.org; Tue, 12 Jul 2011 09:56:15 -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 p6CDuEpx032756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 12 Jul 2011 09:56:14 -0400 Received: from bow.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 p6CDtpFL017856; Tue, 12 Jul 2011 09:56:13 -0400 From: Alon Levy To: qemu-devel@nongnu.org Date: Tue, 12 Jul 2011 16:55:28 +0300 Message-Id: <1310478932-25370-16-git-send-email-alevy@redhat.com> In-Reply-To: <1310478932-25370-1-git-send-email-alevy@redhat.com> References: <1310478932-25370-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: kraxel@redhat.com Subject: [Qemu-devel] [PATCHv3] qxl-render: qxl_render_update: nop if \!ssd.running 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 --- hw/qxl-render.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/qxl-render.c b/hw/qxl-render.c index d70373d..f440fe8 100644 --- a/hw/qxl-render.c +++ b/hw/qxl-render.c @@ -106,6 +106,10 @@ void qxl_render_update(PCIQXLDevice *qxl) QXLRect dirty[32], update; void *ptr; + if (!qxl->ssd.running) { + return; + } + if (qxl->guest_primary.resized) { qxl->guest_primary.resized = 0;