On 08/16/12 15:00, Yonit Halperin wrote: > On 08/16/2012 12:42 PM, Gerd Hoffmann wrote: >> On 08/16/12 10:23, Yonit Halperin wrote: >>> Spice server needs to know about the vm state in order to prevent >>> attempts to write to devices when they are stopped, mainly during >>> the non-live stage of migration. >> >> Why this new hook? >> >> qemu already notifies spice-server using QXLWorker start/stop callbacks. > It notifies the QXLWorker, and it goes to the display_channel. Spice api > changes anyway, by adding spice_server_set_seamless_migration, and as > other channels need this notification as well, it would be nicer to > explicitly notify the server about the vm start/stop and not abuse the > QXLWorker notification.
It is indeed cleaner API-wise. Is it possible to skip QXLWorker notification when calling the new spice_server_vm_{start,stop} functions? cheers, Gerd