Revision 75c70e37 hw/display/qxl.c
b/hw/display/qxl.c | ||
---|---|---|
1144 | 1144 |
|
1145 | 1145 |
static void qxl_hard_reset(PCIQXLDevice *d, int loadvm) |
1146 | 1146 |
{ |
1147 |
bool startstop = qemu_spice_display_is_running(&d->ssd); |
|
1148 |
|
|
1147 | 1149 |
trace_qxl_hard_reset(d->id, loadvm); |
1148 | 1150 |
|
1151 |
if (startstop) { |
|
1152 |
qemu_spice_display_stop(); |
|
1153 |
} |
|
1154 |
|
|
1149 | 1155 |
qxl_spice_reset_cursor(d); |
1150 | 1156 |
qxl_spice_reset_image_cache(d); |
1151 | 1157 |
qxl_reset_surfaces(d); |
... | ... | |
1159 | 1165 |
} |
1160 | 1166 |
qemu_spice_create_host_memslot(&d->ssd); |
1161 | 1167 |
qxl_soft_reset(d); |
1168 |
|
|
1169 |
if (startstop) { |
|
1170 |
qemu_spice_display_start(); |
|
1171 |
} |
|
1162 | 1172 |
} |
1163 | 1173 |
|
1164 | 1174 |
static void qxl_reset_handler(DeviceState *dev) |
Also available in: Unified diff