Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-14 Thread Robert Relyea
Anthony Liguori wrote: And how does the smart card state get migrated during migration? How do you keep it synced with QEMU? I don't understand the use-case behind this. Is this so that a local physical smart card can be passed through to a guest from a Spice client and when

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-14 Thread Anthony Liguori
On 10/14/2010 01:37 PM, Robert Relyea wrote: Anthony Liguori wrote: And how does the smart card state get migrated during migration? How do you keep it synced with QEMU? I don't understand the use-case behind this. Is this so that a local physical smart card can be passed through

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-14 Thread Robert Relyea
On 10/14/2010 11:52 AM, Anthony Liguori wrote: On 10/14/2010 01:37 PM, Robert Relyea wrote: Anthony Liguori wrote: And how does the smart card state get migrated during migration? How do you keep it synced with QEMU? I don't understand the use-case behind this. Is this so that a

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-14 Thread Anthony Liguori
On 10/14/2010 05:03 PM, Robert Relyea wrote: Remote device passthrough is just a special case of passthrough. It's got interesting characteristics in that unlike local device passthrough, if you preserve the connection to the remove device, migration is still possible. However, remote

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-14 Thread Robert Relyea
On 10/14/2010 03:16 PM, Anthony Liguori wrote: On 10/14/2010 05:03 PM, Robert Relyea wrote: Remote device passthrough is just a special case of passthrough. It's got interesting characteristics in that unlike local device passthrough, if you preserve the connection to the remove device,

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-13 Thread Alon Levy
- Anthony Liguori anth...@codemonkey.ws wrote: On 10/12/2010 12:09 PM, Alon Levy wrote: The smart card is not being migrated. It is running on the client machine, which is not being migrated/shutdown (same as vncviewer isn't migrated). Ok, let's look at this compared to

[Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-12 Thread Alon Levy
This patch adds a new device, it is described in full in the second patch intro and also in the documentation in docs. In brief it provides a standard smart card reader device. The first patch is the configure change and docs. The second patch contains the actual device, I couldn't figure out a

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-12 Thread Alon Levy
- Anthony Liguori anth...@codemonkey.ws wrote: On 10/12/2010 07:58 AM, Alon Levy wrote: This patch adds a new device, it is described in full in the second patch intro and also in the documentation in docs. In brief it provides a standard smart card reader device. The first

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-12 Thread Anthony Liguori
On 10/12/2010 11:03 AM, Alon Levy wrote: - Anthony Liguorianth...@codemonkey.ws wrote: On 10/12/2010 07:58 AM, Alon Levy wrote: This patch adds a new device, it is described in full in the second patch intro and also in the documentation in docs. In brief it

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-12 Thread Alon Levy
- Anthony Liguori anth...@codemonkey.ws wrote: On 10/12/2010 11:03 AM, Alon Levy wrote: - Anthony Liguorianth...@codemonkey.ws wrote: On 10/12/2010 07:58 AM, Alon Levy wrote: This patch adds a new device, it is described in full in the second patch

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-12 Thread Anthony Liguori
On 10/12/2010 11:43 AM, Alon Levy wrote: - Anthony Liguorianth...@codemonkey.ws wrote: On 10/12/2010 11:03 AM, Alon Levy wrote: - Anthony Liguorianth...@codemonkey.ws wrote: On 10/12/2010 07:58 AM, Alon Levy wrote: This patch adds a new device, it

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-12 Thread Alon Levy
- Anthony Liguori anth...@codemonkey.ws wrote: On 10/12/2010 11:43 AM, Alon Levy wrote: - Anthony Liguorianth...@codemonkey.ws wrote: On 10/12/2010 11:03 AM, Alon Levy wrote: - Anthony Liguorianth...@codemonkey.ws wrote: On 10/12/2010 07:58

Re: [Qemu-devel] [PATCH 0/2] usb-ccid device (v2)

2010-10-12 Thread Anthony Liguori
On 10/12/2010 12:09 PM, Alon Levy wrote: The smart card is not being migrated. It is running on the client machine, which is not being migrated/shutdown (same as vncviewer isn't migrated). Ok, let's look at this compared to another similar use-case: USB passthrough of a webcam device

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-07 Thread Anthony Liguori
On 10/07/2010 02:39 AM, Alon Levy wrote: - Anthony Liguorianth...@codemonkey.ws 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

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-07 Thread Anthony Liguori
On 10/06/2010 05:12 PM, Alon Levy wrote: Actually, both are possible - but the later is the interesting use case (the former is mainly for debugging). To elaborate: the device is meant to allow a hardware reader to be available to the guest while still being available to the client (which is

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-07 Thread Gerd Hoffmann
On 10/06/10 21:00, Anthony Liguori wrote: Better yet, mark the guest as unmigrateable and let the management tool unplug the usb device before migration and replug it after migration. Yep, that will work too. cheers, Gerd

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-07 Thread Alon Levy
- Anthony Liguori anth...@codemonkey.ws 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

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-06 Thread Gerd Hoffmann
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

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-06 Thread Anthony Liguori
On 10/05/2010 07:28 PM, Alon Levy wrote: - Anthony Liguorianth...@codemonkey.ws wrote: On 10/05/2010 04:32 PM, Alon Levy wrote: This patch adds a new device, it is described in full in the second patch intro and also in the documentation in docs. In brief it

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-06 Thread Anthony Liguori
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

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-06 Thread Alon Levy
- Anthony Liguori anth...@codemonkey.ws 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

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-06 Thread Alon Levy
- Anthony Liguori anth...@codemonkey.ws wrote: On 10/05/2010 07:28 PM, Alon Levy wrote: - Anthony Liguorianth...@codemonkey.ws wrote: On 10/05/2010 04:32 PM, Alon Levy wrote: This patch adds a new device, it is described in full in the second patch

[Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-05 Thread Alon Levy
This patch adds a new device, it is described in full in the second patch intro and also in the documentation in docs. In brief it provides a standard smart card reader device. The first patch is the configure change and docs. The second patch contains the actual device, I couldn't figure out a

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-05 Thread Anthony Liguori
On 10/05/2010 04:32 PM, Alon Levy wrote: This patch adds a new device, it is described in full in the second patch intro and also in the documentation in docs. In brief it provides a standard smart card reader device. The first patch is the configure change and docs. The second patch contains

Re: [Qemu-devel] [PATCH 0/2] USB CCID device

2010-10-05 Thread Alon Levy
- Anthony Liguori anth...@codemonkey.ws wrote: On 10/05/2010 04:32 PM, Alon Levy wrote: This patch adds a new device, it is described in full in the second patch intro and also in the documentation in docs. In brief it provides a standard smart card reader device. The first