From cb767a83fda2b93b47de284719353b3d073120be Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Thu, 2 Aug 2012 22:55:53 +0300 Subject: char device migration: don't read or write from/to the device while waiting for migraion data --- server/smartcard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/smartcard.c') diff --git a/server/smartcard.c b/server/smartcard.c index 2ed0bde8..de86185d 100644 --- a/server/smartcard.c +++ b/server/smartcard.c @@ -326,7 +326,8 @@ static void smartcard_char_device_attach(SpiceCharDeviceInstance *char_device, FALSE, /* no flow control yet */ 0, /* send queue size */ ~0, - ~0); + ~0, + red_channel_client_waits_for_migrate_data(&scc->base)); scc->smartcard_state = st; write_buf = spice_char_device_write_buffer_get(st->chardev_st, NULL, sizeof(vheader)); if (!write_buf) { -- cgit