Linux usermode emulation user mode USB driver support.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Laurent Vivier
AppliedLe 25/09/2018 à 09:12, Cortland Tölva a écrit :
Quoted 26 lines
This patch series aims to let programs running under QEMU Linux user mode emulation implement user-space USB drivers via the USBFS ioctl()s. First I check for the necessary header files, then I define some types, and last I implement the submit, discard, and reap functions, which involve USB request buffers which live beyond a single
ioctl()call.Each patch in this series compiles for i386, ppc64, ppc64le, mips, mipsel, xtensa, and xtensaeb with an armv7l host and an
x86_64host. The i386-linux-user target is tested working with a USB scanner driver on an armv7l host. Additionally, a patched copy of strace was used to verify the conversion for reaping. Additionally, a MIPS binary of lsusb was run on armv7l host to check reaping and other functionality across endianness.Not tested on 64-bit hosts.
Changes from v1:
usecheck_includein configure
move struct definitions to later patch where possible improve pointer cast to int compatibility remove unimplemented types for usb streamsCortland Tölva (3):
linux-user: Check for Linux USBFS in configure
linux-user: Define ordinary usbfs ioctls.
linux-user: implement special usbfs ioctls.
Quoted 7 lines
configure | 12 +++- linux-user/ioctls.h | 46 ++++++++++++ linux-user/syscall.c | 171 +++++++++++++++++++++++++++++++++++++++++++++ linux-user/syscall_defs.h | 30 ++++++++ linux-user/syscall_types.h | 68 ++++++++++++++++++ 5 files changed, 326 insertions(+), 1 deletion(-)
I've applied patches 1 and 2 to my linux-user branch.
Thanks,
Laurent