summaryrefslogtreecommitdiffstats
path: root/server/red_worker.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-05-11 15:23:29 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-05-19 11:22:07 +0200
commit20da2f162af24f2dbbe0709fa986bcce8b26586c (patch)
tree0fefcb6c404539b53e64f6683f6355ad0060e3c3 /server/red_worker.h
parent6bdf38daf8796a596fe992bd79b79dd312870b89 (diff)
downloadspice-20da2f162af24f2dbbe0709fa986bcce8b26586c.tar.gz
spice-20da2f162af24f2dbbe0709fa986bcce8b26586c.tar.xz
spice-20da2f162af24f2dbbe0709fa986bcce8b26586c.zip
replace worker load/save with loadvm_commands, allow keeping surface content
Add worker->loadvm_commands. qemu will uses this to send a series of commands needed to restore state after savevm/loadvm and migration. That will be one create-surface command per surface and one cursor-set command for the local pointer. The worker->save/load functions are not needed any more. Likewise the interface->{get,set}_save_data callbacks. Surfaces created via loadvm_commands *will* not be cleared. Also primary surfaces are not cleared any more (unconditionally, although we could do that conditionally on loadvm using the flags field in QXLSurfaceCreate).
Diffstat (limited to 'server/red_worker.h')
-rw-r--r--server/red_worker.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/red_worker.h b/server/red_worker.h
index e53d5182..88c1e90c 100644
--- a/server/red_worker.h
+++ b/server/red_worker.h
@@ -50,8 +50,6 @@ enum {
RED_WORKER_MESSAGE_DISPLAY_CONNECT,
RED_WORKER_MESSAGE_DISPLAY_DISCONNECT,
RED_WORKER_MESSAGE_DISPLAY_MIGRATE,
- RED_WORKER_MESSAGE_SAVE,
- RED_WORKER_MESSAGE_LOAD,
RED_WORKER_MESSAGE_START,
RED_WORKER_MESSAGE_STOP,
RED_WORKER_MESSAGE_CURSOR_CONNECT,
@@ -69,6 +67,7 @@ enum {
RED_WORKER_MESSAGE_RESET_CURSOR,
RED_WORKER_MESSAGE_RESET_IMAGE_CACHE,
RED_WORKER_MESSAGE_DESTROY_SURFACE_WAIT,
+ RED_WORKER_MESSAGE_LOADVM_COMMANDS,
};
typedef uint32_t RedWorkeMessage;