From patchwork Wed Jun 15 18:44:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 100557 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 225B6B6F8F for ; Thu, 16 Jun 2011 03:48:11 +1000 (EST) Received: from localhost ([::1]:38607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWuCG-0004wK-6i for incoming@patchwork.ozlabs.org; Wed, 15 Jun 2011 13:48:08 -0400 Received: from eggs.gnu.org ([140.186.70.92]:33888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWtDP-000678-G4 for qemu-devel@nongnu.org; Wed, 15 Jun 2011 12:45:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWtDL-0001ei-AS for qemu-devel@nongnu.org; Wed, 15 Jun 2011 12:45:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWtDK-0001dx-Kg for qemu-devel@nongnu.org; Wed, 15 Jun 2011 12:45:11 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5FGj6ll023826 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Jun 2011 12:45:06 -0400 Received: from bow.redhat.com (vpn-11-242.rdu.redhat.com [10.11.11.242]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p5FGj49W002674; Wed, 15 Jun 2011 12:45:05 -0400 From: Alon Levy To: qemu-devel@nongnu.org Date: Wed, 15 Jun 2011 20:44:38 +0200 Message-Id: <1308163478-21136-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: spice-devel@lists.freedesktop.org, kraxel@redhat.com Subject: [Qemu-devel] [RFC] 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 15f0704..feeee73 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -70,6 +70,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; @@ -96,6 +97,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;