From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44978 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3l4p-0005JW-8F for qemu-devel@nongnu.org; Thu, 07 Oct 2010 03:39:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3l4n-0000ZZ-T3 for qemu-devel@nongnu.org; Thu, 07 Oct 2010 03:39:43 -0400 Received: from mx3-phx2.redhat.com ([209.132.183.24]:43473 helo=mx01.colomx.prod.int.phx2.redhat.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3l4n-0000ZS-Gz for qemu-devel@nongnu.org; Thu, 07 Oct 2010 03:39:41 -0400 Date: Thu, 7 Oct 2010 03:39:39 -0400 (EDT) From: Alon Levy Message-ID: <2052681331.708791286437179606.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> In-Reply-To: <4CACC75B.3070401@codemonkey.ws> Subject: Re: [Qemu-devel] [PATCH 0/2] USB CCID device MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Gerd Hoffmann ----- "Anthony Liguori" wrote: > On 10/06/2010 03:55 AM, Gerd Hoffmann wrote: > > On 10/06/10 02:28, Alon Levy wrote: > >> > >>> > >>> Does this work with live migration? I can't see how it would. > >>> > >> > >> No, it doesn't right now. It would require cooperation with the > client, > >> to tell it to reconnect to the target qemu (kind of like spice). > > > > I think until we have this migration should have pretty much the > same > > effect as a chardev disconnect, i.e. detach the usb device (which > the > > guest will see as unplug). > > Better yet, mark the guest as unmigrateable and let the management > tool > unplug the usb device before migration and replug it after migration. > > It's the same principle behind device assignment. > Is there any way to also get a pre_migrate callback with register_device_unmigratable? I'd like to send a VSC_Reconnect message, then the guest sees an unplug, then migration, then (no plug yet since the device is marked as auto_attach=0) client reconnects (actually this happens before but to a paused machine waiting for migration), and then causes attachement, same as a new machine. > Regards, > > Anthony Liguori > > > Needs some code though, at minimum you'll have to xfer the connected > > > state from the migration source and have some bits in post_load() > > which do attach/detach if needed. > > > > cheers, > > Gerd > >