]> git.proxmox.com Git - qemu.git/commit
qxl: error handling fixes and cleanups.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 20 Jul 2011 09:20:55 +0000 (12:20 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 1 Aug 2011 10:43:49 +0000 (12:43 +0200)
commit2bce0400579f58ccb33d201cde9e63c39750faf4
treed8dfaf0fc5a24355c3fe9b7b328f72d6df3191fc
parent8b92e2989eddaca0bef5076135d2dee3c06f6700
qxl: error handling fixes and cleanups.

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 qemu bugs only, any guest-triggerable stuff should use the new
qxl_guest_bug() function instead.

Convert a few easy cases from PANIC_ON() to qxl_guest_bug() to
show intended usage.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qxl.c
hw/qxl.h