[PATCH 0/6] fcntl, sockopt, and ioctl options

Shu-Chun Weng posted 6 patches 3 years, 9 months ago
Test docker-quick@centos7 failed
Test docker-mingw@fedora failed
Test checkpatch failed
Test FreeBSD failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.1595461447.git.scw@google.com
Maintainers: Laurent Vivier <laurent@vivier.eu>, Riku Voipio <riku.voipio@iki.fi>, "Alex Bennée" <alex.bennee@linaro.org>
There is a newer version of this series
include/exec/user/thunk.h              |  20 +
linux-user/Makefile.objs               |   3 +-
linux-user/alpha/sockbits.h            |  21 +-
linux-user/ethtool.c                   | 819 +++++++++++++++++++++++++
linux-user/ethtool.h                   |  19 +
linux-user/ethtool_entries.h           | 107 ++++
linux-user/fd-trans.h                  |  41 +-
linux-user/generic/sockbits.h          |  17 +-
linux-user/hppa/sockbits.h             |  20 +-
linux-user/ioctls.h                    |   2 +
linux-user/mips/sockbits.h             |  16 +-
linux-user/qemu.h                      |   1 +
linux-user/sparc/sockbits.h            |  21 +-
linux-user/strace.c                    |  19 +-
linux-user/syscall.c                   | 233 ++++++-
linux-user/syscall_defs.h              |  26 +-
linux-user/syscall_types.h             | 277 +++++++++
tests/tcg/multiarch/ethtool.c          | 417 +++++++++++++
tests/tcg/multiarch/socket_timestamp.c | 542 ++++++++++++++++
thunk.c                                | 151 ++++-
20 files changed, 2706 insertions(+), 66 deletions(-)
create mode 100644 linux-user/ethtool.c
create mode 100644 linux-user/ethtool.h
create mode 100644 linux-user/ethtool_entries.h
create mode 100644 tests/tcg/multiarch/ethtool.c
create mode 100644 tests/tcg/multiarch/socket_timestamp.c
[PATCH 0/6] fcntl, sockopt, and ioctl options
Posted by Shu-Chun Weng 3 years, 9 months ago
Hi Laurent,

This is a series of 6 patches in 4 groups, putting into a single thread for
easier tracking.

[PATCH 1/6] linux-user: Support F_ADD_SEALS and F_GET_SEALS fcntls
  An incidental follow up on
  https://lists.nongnu.org/archive/html/qemu-devel/2019-09/msg01925.html

[PATCH 2/6] linux-user: add missing UDP and IPv6 get/setsockopt
  Updated https://lists.nongnu.org/archive/html/qemu-devel/2019-09/msg01317.html
  to consistently add them in get/setsockopt

[PATCH 3/6] linux-user: Update SO_TIMESTAMP to SO_TIMESTAMP_OLD/NEW
[PATCH 4/6] linux-user: setsockopt() SO_TIMESTAMPNS and SO_TIMESTAMPING
  Updated https://lists.nongnu.org/archive/html/qemu-devel/2019-09/msg01319.html
  to only use TARGET_SO_*_OLD/NEW

[PATCH 5/6] thunk: supports flexible arrays
[PATCH 6/6] linux-user: Add support for SIOCETHTOOL ioctl
  Updated https://lists.nongnu.org/archive/html/qemu-devel/2019-08/msg05090.html

Shu-Chun Weng (6):
  linux-user: Support F_ADD_SEALS and F_GET_SEALS fcntls
  linux-user: add missing UDP and IPv6 get/setsockopt options
  linux-user: Update SO_TIMESTAMP to SO_TIMESTAMP_OLD/NEW
  linux-user: setsockopt() SO_TIMESTAMPNS and SO_TIMESTAMPING
  thunk: supports flexible arrays
  linux-user: Add support for SIOCETHTOOL ioctl

 include/exec/user/thunk.h              |  20 +
 linux-user/Makefile.objs               |   3 +-
 linux-user/alpha/sockbits.h            |  21 +-
 linux-user/ethtool.c                   | 819 +++++++++++++++++++++++++
 linux-user/ethtool.h                   |  19 +
 linux-user/ethtool_entries.h           | 107 ++++
 linux-user/fd-trans.h                  |  41 +-
 linux-user/generic/sockbits.h          |  17 +-
 linux-user/hppa/sockbits.h             |  20 +-
 linux-user/ioctls.h                    |   2 +
 linux-user/mips/sockbits.h             |  16 +-
 linux-user/qemu.h                      |   1 +
 linux-user/sparc/sockbits.h            |  21 +-
 linux-user/strace.c                    |  19 +-
 linux-user/syscall.c                   | 233 ++++++-
 linux-user/syscall_defs.h              |  26 +-
 linux-user/syscall_types.h             | 277 +++++++++
 tests/tcg/multiarch/ethtool.c          | 417 +++++++++++++
 tests/tcg/multiarch/socket_timestamp.c | 542 ++++++++++++++++
 thunk.c                                | 151 ++++-
 20 files changed, 2706 insertions(+), 66 deletions(-)
 create mode 100644 linux-user/ethtool.c
 create mode 100644 linux-user/ethtool.h
 create mode 100644 linux-user/ethtool_entries.h
 create mode 100644 tests/tcg/multiarch/ethtool.c
 create mode 100644 tests/tcg/multiarch/socket_timestamp.c

-- 
2.28.0.rc0.105.gf9edc3c819-goog


Re: [PATCH 0/6] fcntl, sockopt, and ioctl options
Posted by Shu-Chun Weng 3 years, 9 months ago
Ping! Patchew: https://patchew.org/QEMU/cover.1595461447.git.scw@google.com/

On Wed, Jul 22, 2020 at 5:19 PM Shu-Chun Weng <scw@google.com> wrote:

> Hi Laurent,
>
> This is a series of 6 patches in 4 groups, putting into a single thread for
> easier tracking.
>
> [PATCH 1/6] linux-user: Support F_ADD_SEALS and F_GET_SEALS fcntls
>   An incidental follow up on
>   https://lists.nongnu.org/archive/html/qemu-devel/2019-09/msg01925.html
>
> [PATCH 2/6] linux-user: add missing UDP and IPv6 get/setsockopt
>   Updated
> https://lists.nongnu.org/archive/html/qemu-devel/2019-09/msg01317.html
>   to consistently add them in get/setsockopt
>
> [PATCH 3/6] linux-user: Update SO_TIMESTAMP to SO_TIMESTAMP_OLD/NEW
> [PATCH 4/6] linux-user: setsockopt() SO_TIMESTAMPNS and SO_TIMESTAMPING
>   Updated
> https://lists.nongnu.org/archive/html/qemu-devel/2019-09/msg01319.html
>   to only use TARGET_SO_*_OLD/NEW
>
> [PATCH 5/6] thunk: supports flexible arrays
> [PATCH 6/6] linux-user: Add support for SIOCETHTOOL ioctl
>   Updated
> https://lists.nongnu.org/archive/html/qemu-devel/2019-08/msg05090.html
>
> Shu-Chun Weng (6):
>   linux-user: Support F_ADD_SEALS and F_GET_SEALS fcntls
>   linux-user: add missing UDP and IPv6 get/setsockopt options
>   linux-user: Update SO_TIMESTAMP to SO_TIMESTAMP_OLD/NEW
>   linux-user: setsockopt() SO_TIMESTAMPNS and SO_TIMESTAMPING
>   thunk: supports flexible arrays
>   linux-user: Add support for SIOCETHTOOL ioctl
>
>  include/exec/user/thunk.h              |  20 +
>  linux-user/Makefile.objs               |   3 +-
>  linux-user/alpha/sockbits.h            |  21 +-
>  linux-user/ethtool.c                   | 819 +++++++++++++++++++++++++
>  linux-user/ethtool.h                   |  19 +
>  linux-user/ethtool_entries.h           | 107 ++++
>  linux-user/fd-trans.h                  |  41 +-
>  linux-user/generic/sockbits.h          |  17 +-
>  linux-user/hppa/sockbits.h             |  20 +-
>  linux-user/ioctls.h                    |   2 +
>  linux-user/mips/sockbits.h             |  16 +-
>  linux-user/qemu.h                      |   1 +
>  linux-user/sparc/sockbits.h            |  21 +-
>  linux-user/strace.c                    |  19 +-
>  linux-user/syscall.c                   | 233 ++++++-
>  linux-user/syscall_defs.h              |  26 +-
>  linux-user/syscall_types.h             | 277 +++++++++
>  tests/tcg/multiarch/ethtool.c          | 417 +++++++++++++
>  tests/tcg/multiarch/socket_timestamp.c | 542 ++++++++++++++++
>  thunk.c                                | 151 ++++-
>  20 files changed, 2706 insertions(+), 66 deletions(-)
>  create mode 100644 linux-user/ethtool.c
>  create mode 100644 linux-user/ethtool.h
>  create mode 100644 linux-user/ethtool_entries.h
>  create mode 100644 tests/tcg/multiarch/ethtool.c
>  create mode 100644 tests/tcg/multiarch/socket_timestamp.c
>
> --
> 2.28.0.rc0.105.gf9edc3c819-goog
>
>