Re: [Qemu-devel] [PATCHv4 06/11] qxl: error handling fixes and cleanups.

2011-07-14 Thread Gerd Hoffmann
+void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg) +{ +qxl_send_events(qxl, QXL_INTERRUPT_ERROR); +if (qxl-guestdebug) { +fprintf(stderr, qxl-%d: guest bug: %s\n, qxl-id, msg); +} +} One more build failure with old spice-server + spice-protocol (QXL_INTERRUPT_ERROR

[Qemu-devel] [PATCHv4 06/11] qxl: error handling fixes and cleanups.

2011-07-13 Thread Alon Levy
From: Gerd Hoffmann kra...@redhat.com Add qxl_guest_bug() function which is supposed to be called in case sanity checks of guest requests fail. It raises an error IRQ and logs a message in case guest debugging is enabled. Make PANIC_ON() abort instead of exit. That macro should be used for