From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Alon Levy <alevy@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH 3/9] qxl: set mm_time in vga update
Date: Mon, 4 Jul 2011 17:14:09 +0200 [thread overview]
Message-ID: <1309792455-26825-4-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1309792455-26825-1-git-send-email-kraxel@redhat.com>
From: Alon Levy <alevy@redhat.com>
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.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
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;
--
1.7.1
next prev parent reply other threads:[~2011-07-04 15:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-04 15:14 [Qemu-devel] [PULL] spice patch queue Gerd Hoffmann
2011-07-04 15:14 ` [Qemu-devel] [PATCH 1/9] qxl: device id fixup Gerd Hoffmann
2011-07-04 15:14 ` [Qemu-devel] [PATCH 2/9] spice: catch spice server initialization failures Gerd Hoffmann
2011-07-04 15:14 ` Gerd Hoffmann [this message]
2011-07-04 15:14 ` [Qemu-devel] [PATCH 4/9] qxl: interface_get_command: fix reported mode Gerd Hoffmann
2011-07-04 15:14 ` [Qemu-devel] [PATCH 5/9] qxl-logger: add timestamp to command log Gerd Hoffmann
2011-07-04 15:14 ` [Qemu-devel] [PATCH 6/9] qxl: add dev id to guest prints Gerd Hoffmann
2011-07-04 15:14 ` [Qemu-devel] [PATCH 7/9] qxl: make sure primary surface is saved on migration Gerd Hoffmann
2011-07-04 15:14 ` [Qemu-devel] [PATCH 8/9] qxl: put QXL_IO_UPDATE_IRQ into vgamode whitelist Gerd Hoffmann
2011-07-04 15:14 ` [Qemu-devel] [PATCH 9/9] qxl: allow QXL_IO_LOG also in vga Gerd Hoffmann
2011-07-12 14:57 ` [Qemu-devel] [PULL] spice patch queue Gerd Hoffmann
2011-07-19 15:58 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1309792455-26825-4-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=alevy@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).