This patchset adds two new devices, usb-ccid and ccid-card-passthru, providing a CCID implementation as a bus and a simple passthru protocol implementing card requiring a client.
Next patches will add a fully emulated card that can be used standalone to use a local (host side) card reader, and documentation (being revised for the new bus and multiple cards change) v3 changes: * split into bus (usb-ccid.c, uses ccid.h) and card (ccid-card-passthru.c). * removed documentation (being revised). v2 changed: * all QSIMPLEQ turned into fixed sized rings * all allocated buffers turned into fixed size buffers * added migration support * added a message to tell client qemu has migrated to ip:port * for lack of monitor commands ip:port are 0:0, which causes the updated vscclient to connect to one port higher on the same host. will add monitor commands in a separate patch. tested with current setup. Alon Levy (2): usb-ccid: add CCID bus ccid: add passthru card device Makefile.objs | 1 + configure | 12 + hw/ccid-card-passthru.c | 284 ++++++++++ hw/ccid.h | 34 ++ hw/usb-ccid.c | 1349 +++++++++++++++++++++++++++++++++++++++++++++++ hw/vscard_common.h | 130 +++++ 6 files changed, 1810 insertions(+), 0 deletions(-) create mode 100644 hw/ccid-card-passthru.c create mode 100644 hw/ccid.h create mode 100644 hw/usb-ccid.c create mode 100644 hw/vscard_common.h -- 1.7.3.1