qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alon Levy <alevy@redhat.com>
To: Luiz Capitulino <lcapitulino@redhat.com>,
	Gerd Hoffmann <kraxel@redhat.com>, Avi Kivity <avi@redhat.com>,
	qemu-devel@nongnu.org
Subject: [Qemu-devel] qxl screendump: how and why it is broken
Date: Tue, 6 Mar 2012 19:21:12 +0200	[thread overview]
Message-ID: <20120306172112.GM2240@garlic.redhat.com> (raw)

..and why we got to this situation.

(per Anthony's request, and if you'll excuse the puny attempt to write
biblically, a new beginning)

In the begining there was screendump. It was a synchronous monitor
command. Libvirt said: I want a screendump. And qemu waited for the vga
device to produce it. When the vga device said it was done, libvirt was
done.

Then there came qxl. Qxl used a spice library to render the contents. It
would say to libvirt: wait, while I read on this thread, which will tell
me I am done. And so it was possible to hang the libvirt process:

 tl;dr if spice client hangs libvirt screenshot hangs and qemu's vcpus starve.
 http://lists.gnu.org/archive/html/qemu-devel/2012-03/msg00864.html

Then a new patchset landed, which stopped the read, by waiting for a
callback from the spice server. It is here:
 http://patchwork.ozlabs.org/patch/142985/
 commited as 81fb6f1504fb9ef71f2382f44af34756668296e8

But now screendump for qxl is broken: It produces a file that is old,
because it calls ppm_save before spice server is done rendering.

Now we come to now. My understanding from the previous thread is:
 * monitor async is not good because Luiz said so.
 (yes, I know I'm putting my head in the sand here)

If the above is enough to convince you of $SUBJECT, then the
screendump-async patchset is still waiting review :)

http://patchwork.ozlabs.org/patch/144704/
http://patchwork.ozlabs.org/patch/144705/
http://patchwork.ozlabs.org/patch/144706/

Alon

                 reply	other threads:[~2012-03-06 17:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20120306172112.GM2240@garlic.redhat.com \
    --to=alevy@redhat.com \
    --cc=avi@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=lcapitulino@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).