]> Git Repo - qemu.git/commitdiff
qxl: clear irq on reset
authorAlon Levy <[email protected]>
Mon, 20 Jan 2014 10:44:19 +0000 (12:44 +0200)
committerGerd Hoffmann <[email protected]>
Mon, 3 Feb 2014 10:05:15 +0000 (11:05 +0100)
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 <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/display/qxl.c

index e4f172e3fba04543d314a7391f9686e1d3cb04b2..56b61c8ad8842c4565058e57ce93620061961437 100644 (file)
@@ -1126,6 +1126,7 @@ static void qxl_reset_state(PCIQXLDevice *d)
     d->num_free_res = 0;
     d->last_release = NULL;
     memset(&d->ssd.dirty, 0, sizeof(d->ssd.dirty));
+    qxl_update_irq(d);
 }
 
 static void qxl_soft_reset(PCIQXLDevice *d)
This page took 0.028937 seconds and 4 git commands to generate.