[Qemu-devel] [PATCH 0/2] linux-user: usbfs improvements

Cortland Tölva posted 2 patches 7 years, 4 months ago
Failed in applying to current master (apply log)
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(-)
[Qemu-devel] [PATCH 0/2] linux-user: usbfs improvements
Posted by Cortland Tölva 7 years, 4 months ago
From: Cortland Setlow Tölva <cst@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

Re: [Qemu-devel] [PATCH 0/2] linux-user: usbfs improvements
Posted by Laurent Vivier 7 years, 4 months ago
Le 08/10/2018 à 06:27, Cortland Tölva a écrit :
> From: Cortland Setlow Tölva <cst@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(-)
> 

As I didn't push the previous series, could you merge the both in one on
top of master?

I think it would be clearer.

Thanks,
Laurent

Re: [Qemu-devel] [PATCH 0/2] linux-user: usbfs improvements
Posted by Cortland Setlow Tölva 7 years, 4 months ago
On Sun, Oct 7, 2018 at 11:59 PM Laurent Vivier <laurent@vivier.eu> wrote:
>
> Le 08/10/2018 à 06:27, Cortland Tölva a écrit :
> > From: Cortland Setlow Tölva <cst@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(-)
> >
>
> As I didn't push the previous series, could you merge the both in one on
> top of master?

Yes, I will do this as a v2 of this patch series.  The version here is
based on your
linux user tree as of last night.

>
> I think it would be clearer.
>
> Thanks,
> Laurent