Revision efbf2950
b/hw/qxl.c | ||
---|---|---|
1362 | 1362 |
qxl_set_irq(d); |
1363 | 1363 |
} |
1364 | 1364 |
|
1365 |
/* called from spice server thread context only */ |
|
1366 | 1365 |
static void qxl_send_events(PCIQXLDevice *d, uint32_t events) |
1367 | 1366 |
{ |
1368 | 1367 |
uint32_t old_pending; |
... | ... | |
1459 | 1458 |
PCIQXLDevice *qxl = opaque; |
1460 | 1459 |
qemu_spice_vm_change_state_handler(&qxl->ssd, running, reason); |
1461 | 1460 |
|
1462 |
if (!running && qxl->mode == QXL_MODE_NATIVE) { |
|
1461 |
if (running) { |
|
1462 |
/* |
|
1463 |
* if qxl_send_events was called from spice server context before |
|
1464 |
* migration ended, qxl_set_irq for these events might not have been |
|
1465 |
* called |
|
1466 |
*/ |
|
1467 |
qxl_set_irq(qxl); |
|
1468 |
} else if (qxl->mode == QXL_MODE_NATIVE) { |
|
1463 | 1469 |
/* dirty all vram (which holds surfaces) and devram (primary surface) |
1464 | 1470 |
* to make sure they are saved */ |
1465 | 1471 |
/* FIXME #1: should go out during "live" stage */ |
Also available in: Unified diff