From patchwork Fri Jun 24 13:02:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 101788 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 A53E8B6F86 for ; Fri, 24 Jun 2011 23:07:01 +1000 (EST) Received: from localhost ([::1]:50633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa665-00062E-Jq for incoming@patchwork.ozlabs.org; Fri, 24 Jun 2011 09:06:57 -0400 Received: from eggs.gnu.org ([140.186.70.92]:49225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa62T-00061D-Od for qemu-devel@nongnu.org; Fri, 24 Jun 2011 09:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qa62R-0001oc-E3 for qemu-devel@nongnu.org; Fri, 24 Jun 2011 09:03:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa62Q-0001o8-Gg for qemu-devel@nongnu.org; Fri, 24 Jun 2011 09:03:10 -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 p5OD38hu025630 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 24 Jun 2011 09:03:08 -0400 Received: from bow.redhat.com (vpn-11-77.rdu.redhat.com [10.11.11.77]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p5OD34Su021276; Fri, 24 Jun 2011 09:03:07 -0400 From: Alon Levy To: qemu-devel@nongnu.org Date: Fri, 24 Jun 2011 15:02:46 +0200 Message-Id: <1308920577-31569-2-git-send-email-alevy@redhat.com> In-Reply-To: <1308920577-31569-1-git-send-email-alevy@redhat.com> References: <1308920577-31569-1-git-send-email-alevy@redhat.com> 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 Cc: yhalperi@redhat.com, kraxel@redhat.com Subject: [Qemu-devel] [PATCH v2] qxl: set mm_time in vga update 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 This fixes a problem where on windows 7 startup phase, before the qxl driver is loaded, the drawables are sufficiently large and video like to trigger a stream, but the lack of a filled mm time field triggers a warning in spice-gtk. --- ui/spice-display.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/ui/spice-display.c b/ui/spice-display.c index bb1e4a7..93ebc19 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -182,6 +182,7 @@ static SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd) QXLCommand *cmd; uint8_t *src, *dst; int by, bw, bh; + struct timespec time_space; if (qemu_spice_rect_is_empty(&ssd->dirty)) { return NULL; @@ -208,6 +209,10 @@ static SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd) drawable->surfaces_dest[0] = -1; drawable->surfaces_dest[1] = -1; drawable->surfaces_dest[2] = -1; + clock_gettime(CLOCK_MONOTONIC, &time_space); + /* time in milliseconds from epoch. */ + drawable->mm_time = time_space.tv_sec * 1000 + + time_space.tv_nsec / 1000 / 1000; drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT; drawable->u.copy.src_bitmap = (intptr_t)image;