[Qemu-devel] [PATCH v3 3/3] linux-user: Implement special usbfs ioctls.

2018-10-08 Thread Cortland Tölva
in these tests. Signed-off-by: Cortland Tölva --- There are two alternatives for the strategy of holding lock_user on memory from submit until reap. v3 of this series tries to determine the access permissions for user memory from endpoint direction, but the logic for this is complex. The first

[Qemu-devel] [PATCH v3 1/3] linux-user: Check for Linux USBFS in configure

2018-10-08 Thread Cortland Tölva
In preparation for adding user mode emulation support for the Linux usbfs interface, check for its kernel header. Signed-off-by: Cortland Tölva Reviewed-by: Laurent Vivier Message-Id: <20180925071228.32040-2-...@tolva.net> Signed-off-by: Laurent Vivier --- configure | 12 +++-

[Qemu-devel] [PATCH v3 2/3] linux-user: Define ordinary usbfs ioctls.

2018-10-08 Thread Cortland Tölva
Provide ioctl definitions for the generic thunk mechanism to convert most usbfs calls. Calculate arg size at runtime. Signed-off-by: Cortland Tölva --- Changes from v1: move some type definitions to patch 3/3 Changes from v2: calculate ioctl arg size at runtime linux-user/ioctls.h

[Qemu-devel] [PATCH v3 0/3] Linux usermode emulation user mode USB driver support.

2018-10-08 Thread Cortland Tölva
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

[Qemu-devel] [PATCH 1/2] linux-user: Use calculated sizes for usbfs ioctls.

2018-10-07 Thread Cortland Tölva
Size calculation should have used the target struct. Fix the error by marking these ioctls as needing runtime size calcuation. Signed-off-by: Cortland Tölva --- linux-user/syscall_defs.h | 38 ++ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git

[Qemu-devel] [PATCH 2/2] linux-user: Implement usbfs submit and reap ioctls.

2018-10-07 Thread Cortland Tölva
is implemented but has not been tested. Signed-off-by: Cortland Tölva --- lsusb was run with -vv so as to exercise the submit and reap ioctls. linux-user/ioctls.h| 8 ++ linux-user/syscall.c | 177 + linux-user/syscall_defs.h | 4 + linux

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

2018-10-07 Thread Cortland Tölva
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

[Qemu-devel] [PATCH v2 2/3] linux-user: Define ordinary usbfs ioctls.

2018-09-25 Thread Cortland Tölva
Provide ioctl definitions for the generic thunk mechanism to convert most usbfs calls. Signed-off-by: Cortland Tölva --- v2 patch lacks some types that are not used until patch 3/3 linux-user/ioctls.h| 38 linux-user/syscall.c | 3 +++ linux

[Qemu-devel] [PATCH v2 3/3] linux-user: implement special usbfs ioctls.

2018-09-25 Thread Cortland Tölva
with a pointer to a reaped URB are exercised by this. Signed-off-by: Cortland Tölva --- Changes from v1: improve pointer cast to int compatibility remove unimplemented types for usb streams struct definitions moved to this patch where possible linux-user/ioctls.h| 8 +++ linux-user

[Qemu-devel] [PATCH v2 0/3] Linux usermode emulation user mode USB driver support.

2018-09-25 Thread Cortland Tölva
to later patch where possible improve pointer cast to int compatibility remove unimplemented types for usb streams 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

[Qemu-devel] [PATCH v2 1/3] linux-user: Check for Linux USBFS in configure

2018-09-25 Thread Cortland Tölva
In preparation for adding user mode emulation support for the Linux usbfs interface, check for its kernel header. Signed-off-by: Cortland Tölva --- v2 patch uses check_include instead of doing things by hand. configure | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PATCH 2/3] Linux user mode usbfs types and defs.

2018-09-19 Thread Cortland Tölva
Provide ioctl definitions for the generic thunk mechanism to convert most usbfs calls. Signed-off-by: Cortland Tölva --- linux-user/ioctls.h| 38 ++ linux-user/syscall.c | 3 ++ linux-user/syscall_defs.h | 32 ++ linux-user

[Qemu-devel] [PATCH 3/3] linux-user: implement special usbfs ioctls.

2018-09-19 Thread Cortland Tölva
with a pointer to a reaped URB are exercised by this. Signed-off-by: Cortland Tölva --- linux-user/ioctls.h | 9 +++ linux-user/syscall.c | 168 +++ 2 files changed, 177 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index

[Qemu-devel] [PATCH 1/3] Check for Linux USBFS in configure

2018-09-19 Thread Cortland Tölva
In preparation for adding user mode emulation support for the Linux usbfs interface, check for its kernel header. Signed-off-by: Cortland Tölva --- configure | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 58862d2ae8

[Qemu-devel] [PATCH 0/3] Linux usermode emulation user mode USB driver support.

2018-09-19 Thread Cortland Tölva
request buffers which live beyond a single ioctl() call. Cortland Tölva (3): Check for Linux USBFS in configure Linux user mode usbfs types and defs. linux-user: implement special usbfs ioctls. configure | 21 +- linux-user/ioctls.h| 47 + linux-user