mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
2f61120c10
commit
f06b85218a
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue