-
Follow all other char devices implementation (spicevmc, agent, stream-device) and set the char device state when connected/disconnected. This allows qemu to discard writes, optimize a bit the source polling, and will trigger HUP events. See related qemu "char/spice: discard write() if backend is disconnected". Note: sif->state() should probably be handled at the char-device level. I am not sure what the smartcard channel really brings over plain spicevmc... Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
69a5cfc7