[Spice-devel] [PATCH xf86-qxl 1/2] Assert on QXL_INTERRUPT_ERROR

2014-10-12 Thread Marc-André Lureau
From: Marc-Andre Lureau marcandre.lur...@redhat.com When qemu qxl device reaches a guest bug, it might set the QXL_INTERRUPT_ERROR interrupt flag, and stops processing guest commands. Therefore, it makes sense to check that flag in the guest and quit, instead of running in infinite loop in X and

[Spice-devel] [PATCH xf86-qxl 2/2] Check qxl_download_box() arguments

2014-10-12 Thread Marc-André Lureau
From: Marc-Andre Lureau marcandre.lur...@redhat.com Assert on valid arguments, and return early if the given region is empty. Fixes: http://bugzilla.redhat.com/1151559 --- src/qxl_surface.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/qxl_surface.c b/src/qxl_surface.c index

Re: [Spice-devel] [PATCH xf86-qxl 1/2] Assert on QXL_INTERRUPT_ERROR

2014-10-12 Thread Alon Levy
On 10/12/2014 03:24 PM, Marc-André Lureau wrote: From: Marc-Andre Lureau marcandre.lur...@redhat.com When qemu qxl device reaches a guest bug, it might set the QXL_INTERRUPT_ERROR interrupt flag, and stops processing guest commands. Therefore, it makes sense to check that flag in the guest