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
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 +++-
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
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
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
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
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
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
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
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
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
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
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
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
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
15 matches
Mail list logo