Revision 868379ce hw/qxl.c

b/hw/qxl.c
1184 1184
    qemu_spice_vm_change_state_handler(&qxl->ssd, running, reason);
1185 1185

  
1186 1186
    if (!running && qxl->mode == QXL_MODE_NATIVE) {
1187
        /* dirty all vram (which holds surfaces) to make sure it is saved */
1187
        /* dirty all vram (which holds surfaces) and devram (primary surface)
1188
         * to make sure they are saved */
1188 1189
        /* FIXME #1: should go out during "live" stage */
1189 1190
        /* FIXME #2: we only need to save the areas which are actually used */
1190
        ram_addr_t addr = qxl->vram_offset;
1191
        qxl_set_dirty(addr, addr + qxl->vram_size);
1191
        ram_addr_t vram_addr = qxl->vram_offset;
1192
        ram_addr_t surface0_addr = qxl->vga.vram_offset + qxl->shadow_rom.draw_area_offset;
1193
        qxl_set_dirty(vram_addr, vram_addr + qxl->vram_size);
1194
        qxl_set_dirty(surface0_addr, surface0_addr + qxl->shadow_rom.surface0_area_size);
1192 1195
    }
1193 1196
}
1194 1197

  

Also available in: Unified diff