History | View | Annotate | Download (10.5 kB)
qom: Unify type registration
Replace device_init() with generalized type_init().
While at it, unify naming convention: type_init([$prefix_]register_types)Also, type_init() is a function, so add preceding blank line wherenecessary and don't put a semicolon after the closing brace....
qdev: register all types natively through QEMU Object Model
This was done in a mostly automated fashion. I did it in three steps and thenrebased it into a single step which avoids repeatedly touching every file inthe tree.
The first step was a sed-based addition of the parent type to the subclass...
ccid: convert to QEMU Object Model
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ccid: Fix buffer overrun in handling of VSC_ATR message
ATR size exceeding the limit is diagnosed, but then we merrily use itanyway, overrunning card->atr[].
The message is read from a character device. Obvious securityimplications unless the other end of the character device is trusted....
char: rename qemu_chr_close() -> qemu_chr_delete()
char: rename qemu_chr_write() -> qemu_chr_fe_write()
w32: Fix compilation (wrong include file)
arpa/inet.h is not available for w32, so commitedbb21363fbfe40e050f583df921484cbc31c79d breaksw32 compilations.
This is fixed by using qemu_socket.h.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>Reviewed-by: Alon Levy <alevy@redhat.com>...
ccid: add passthru card device
The passthru ccid card is a device sitting on the usb-ccid bus andusing a chardevice to communicate with a remote device using theVSCard protocol defined in libcacard/vscard_common.h
Usage docs available in following patch in docs/ccid.txt...