qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/1] qxl: keep going if reaching guest bug on empty area
@ 2014-10-15 10:51 Gerd Hoffmann
  2014-10-15 10:51 ` [Qemu-devel] [PULL 1/1] " Gerd Hoffmann
  2014-10-22 14:47 ` [Qemu-devel] [PULL 0/1] " Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2014-10-15 10:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

  Hi,

Spice patch queue with a qxl device fix.

please pull,
  Gerd

The following changes since commit b1d28ec6a7dbdaadda39d29322f0de694aeb0b74:

  Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20141010' into staging (2014-10-10 14:55:29 +0100)

are available in the git repository at:


  git://anongit.freedesktop.org/spice/qemu tags/pull-spice-20141015-1

for you to fetch changes up to 9e5a25f1c209ff51e4b65124a3b76dd3f1b0fb49:

  qxl: keep going if reaching guest bug on empty area (2014-10-15 11:08:34 +0200)

----------------------------------------------------------------
qxl: keep going if reaching guest bug on empty area

----------------------------------------------------------------
Marc-André Lureau (1):
      qxl: keep going if reaching guest bug on empty area

 hw/display/qxl.c | 5 +++++
 1 file changed, 5 insertions(+)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PULL 1/1] qxl: keep going if reaching guest bug on empty area
  2014-10-15 10:51 [Qemu-devel] [PULL 0/1] qxl: keep going if reaching guest bug on empty area Gerd Hoffmann
@ 2014-10-15 10:51 ` Gerd Hoffmann
  2014-10-22 14:47 ` [Qemu-devel] [PULL 0/1] " Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2014-10-15 10:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau, Gerd Hoffmann

From: Marc-André Lureau <marcandre.lureau@gmail.com>

Xorg server hangs when using xfig and typing a text with space:
 #0  qxl_wait_for_io_command (qxl=<value optimized out>) at qxl_io.c:47
 #1  0x00007f826a49a299 in qxl_download_box (surface=0x221d030, x1=231, y1=259,
     x2=<value optimized out>, y2=<value optimized out>) at qxl_surface.c:143

       while (!(ram_header->int_pending & QXL_INTERRUPT_IO_CMD))
         usleep (1);

The QXL driver is calling QXL_IO_UPDATE_AREA with an empty area. This
is a guest bug. The call is async and no ack is sent back on guest
bug, so the X server will hang. The driver should be improved to avoid
this situation and also to abort on QXL_INTERRUPT_ERROR. This will be
a different patch series for the driver. However, it is simple enough
to keep qemu running on empty areas update, which is what this patch
provides.

https://bugzilla.redhat.com/show_bug.cgi?id=1151363

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/display/qxl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hw/display/qxl.c b/hw/display/qxl.c
index 93b3518..b540dd6 100644
--- a/hw/display/qxl.c
+++ b/hw/display/qxl.c
@@ -1591,6 +1591,11 @@ async_common:
             qxl_set_guest_bug(d,
                     "QXL_IO_UPDATE_AREA: invalid area (%ux%u)x(%ux%u)\n",
                     update.left, update.top, update.right, update.bottom);
+            if (update.left == update.right || update.top == update.bottom) {
+                /* old drivers may provide empty area, keep going */
+                qxl_clear_guest_bug(d);
+                goto cancel_async;
+            }
             break;
         }
         if (async == QXL_ASYNC) {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PULL 0/1] qxl: keep going if reaching guest bug on empty area
  2014-10-15 10:51 [Qemu-devel] [PULL 0/1] qxl: keep going if reaching guest bug on empty area Gerd Hoffmann
  2014-10-15 10:51 ` [Qemu-devel] [PULL 1/1] " Gerd Hoffmann
@ 2014-10-22 14:47 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2014-10-22 14:47 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: QEMU Developers

On 15 October 2014 11:51, Gerd Hoffmann <kraxel@redhat.com> wrote:
>   Hi,
>
> Spice patch queue with a qxl device fix.
>
> please pull,
>   Gerd
>
> The following changes since commit b1d28ec6a7dbdaadda39d29322f0de694aeb0b74:
>
>   Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20141010' into staging (2014-10-10 14:55:29 +0100)
>
> are available in the git repository at:
>
>
>   git://anongit.freedesktop.org/spice/qemu tags/pull-spice-20141015-1
>
> for you to fetch changes up to 9e5a25f1c209ff51e4b65124a3b76dd3f1b0fb49:
>
>   qxl: keep going if reaching guest bug on empty area (2014-10-15 11:08:34 +0200)
>
> ----------------------------------------------------------------
> qxl: keep going if reaching guest bug on empty area
>
> ----------------------------------------------------------------

Applied, thanks.

-- PMM

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-22 14:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-15 10:51 [Qemu-devel] [PULL 0/1] qxl: keep going if reaching guest bug on empty area Gerd Hoffmann
2014-10-15 10:51 ` [Qemu-devel] [PULL 1/1] " Gerd Hoffmann
2014-10-22 14:47 ` [Qemu-devel] [PULL 0/1] " Peter Maydell

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).