From: Cortland Setlow Tölva <c...@tolva.net> This patch series enables programs running under QEMU Linux user mode emulation to implement user-space USB drivers via the USBFS ioctl()s. Support is limited to control, bulk, and possibly interrupt transfers.
Usbfs ioctl codes were incorrect whenever host and target disagreed on struct size. The submit, discard, and reap usbfs ioctls require special memory buffer handling and the second commit implements this but not for USB3 streams or isochronous transfers. Cortland Tölva (2): linux-user: Use calculated sizes for usbfs ioctls. linux-user: Implement special usbfs ioctls. linux-user/ioctls.h | 8 ++ linux-user/syscall.c | 177 +++++++++++++++++++++++++++++++++++++ linux-user/syscall_defs.h | 42 ++++----- linux-user/syscall_types.h | 20 +++++ 4 files changed, 227 insertions(+), 20 deletions(-) -- 2.17.1