qxl: clear irq on reset
authorAlon Levy <alevy@redhat.com>
Mon, 20 Jan 2014 10:44:19 +0000 (12:44 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 3 Feb 2014 10:05:15 +0000 (11:05 +0100)
commitf06b85218a41fd6f8e797a925f4ea75640b69c9e
tree3f0fddb1c127ed9031f52c3ec91b78f73cbe2c90
parent2f61120c10da9128357510debc8e66880cd2bfdc
qxl: clear irq on reset

Without this we occasionally trigger an assert at
hw/pci/pci.c:pcibus_reset that asserts the irq_count is zero on reset.

This has become a problem with the new drm driver for linux, since doing
a reboot from console causes a race between console updates that set the
irq and the reset assertion that the irq is clear.

Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/qxl.c