From: "Cortland Tölva" <cst@tolva.net>
To: qemu-devel@nongnu.org
Cc: "Cortland Tölva" <cst@tolva.net>, "Laurent Vivier" <laurent@vivier.eu>
Subject: [Qemu-devel] [PATCH v3 0/3] Linux usermode emulation user mode USB driver support.
Date: Mon, 8 Oct 2018 09:35:18 -0700 [thread overview]
Message-ID: <20181008163521.17341-1-cst@tolva.net> (raw)
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.
The series compiles for i386, ppc64, ppc64le, mips, mipsel, xtensa, and
xtensaeb with an armv7l host and an x86_64 host. 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.
Changes from v1:
use check_include in configure
move struct definitions to later patch where possible
improve pointer cast to int compatibility
remove unimplemented types for usb streams
Changes from v2:
calculate ioctl arg size at runtime
organize urb metadata with struct
hold lock_user memory from submit until reap
supersedes patch series 'linux-user: usbfs improvements'
Cortland Tölva (3):
linux-user: Check for Linux USBFS in configure
linux-user: Define ordinary usbfs ioctls.
linux-user: Implement special usbfs ioctls.
configure | 12 ++-
linux-user/ioctls.h | 46 ++++++++++++
linux-user/syscall.c | 180 +++++++++++++++++++++++++++++++++++++++++++++
linux-user/syscall_defs.h | 28 +++++++
linux-user/syscall_types.h | 68 +++++++++++++++++
5 files changed, 333 insertions(+), 1 deletion(-)
--
2.11.0
next reply other threads:[~2018-10-08 16:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-08 16:35 Cortland Tölva [this message]
2018-10-08 16:35 ` [Qemu-devel] [PATCH v3 1/3] linux-user: Check for Linux USBFS in configure Cortland Tölva
2018-10-08 16:35 ` [Qemu-devel] [PATCH v3 2/3] linux-user: Define ordinary usbfs ioctls Cortland Tölva
2018-10-12 19:07 ` Laurent Vivier
2018-10-08 16:35 ` [Qemu-devel] [PATCH v3 3/3] linux-user: Implement special " Cortland Tölva
2018-10-18 16:42 ` Cortland Setlow Tölva
2018-10-18 18:15 ` Laurent Vivier
2018-10-18 18:48 ` Laurent Vivier
2018-10-19 2:16 ` Cortland Setlow Tölva
2018-10-19 7:13 ` Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181008163521.17341-1-cst@tolva.net \
--to=cst@tolva.net \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).