[PATCH v3 0/2] linux-user: Allow mapping low priority rt signals

Ilya Leoshkevich posted 2 patches 3 weeks, 3 days ago
linux-user/main.c                             |  12 +-
linux-user/signal-common.h                    |   2 +-
linux-user/signal.c                           | 108 ++++++++++++++----
meson.build                                   |   3 +-
meson_options.txt                             |   2 +
scripts/meson-buildoptions.sh                 |   2 +
tests/tcg/Makefile.target                     |   4 +-
tests/tcg/multiarch/linux/linux-sigrtminmax.c |  74 ++++++++++++
8 files changed, 182 insertions(+), 25 deletions(-)
create mode 100644 tests/tcg/multiarch/linux/linux-sigrtminmax.c
[PATCH v3 0/2] linux-user: Allow mapping low priority rt signals
Posted by Ilya Leoshkevich 3 weeks, 3 days ago
v1: Unfortunately lost.

v2: https://lore.kernel.org/qemu-devel/20240212205022.242968-1-iii@linux.ibm.com/
v2 -> v3: Make the mapping configurable (Richard).

Hi,

There are apps out there that want to use SIGRTMAX, which linux-user
currently does not map to a host signal. The reason is that with the
current approach it's not possible to map all target signals, so it
was decided to sacrifice the end of the range.

This series improves the situation by making the mapping configurable.
Patch 1 is the implementation, patch 2 is a test.

Best regards,
Ilya

Ilya Leoshkevich (2):
  linux-user: Allow custom rt signal mappings
  tests/tcg: Add SIGRTMIN/SIGRTMAX test

 linux-user/main.c                             |  12 +-
 linux-user/signal-common.h                    |   2 +-
 linux-user/signal.c                           | 108 ++++++++++++++----
 meson.build                                   |   3 +-
 meson_options.txt                             |   2 +
 scripts/meson-buildoptions.sh                 |   2 +
 tests/tcg/Makefile.target                     |   4 +-
 tests/tcg/multiarch/linux/linux-sigrtminmax.c |  74 ++++++++++++
 8 files changed, 182 insertions(+), 25 deletions(-)
 create mode 100644 tests/tcg/multiarch/linux/linux-sigrtminmax.c

-- 
2.47.0
Re: [PATCH v3 0/2] linux-user: Allow mapping low priority rt signals
Posted by Richard Henderson 2 weeks, 4 days ago
On 10/29/24 23:17, Ilya Leoshkevich wrote:
> v1: Unfortunately lost.
> 
> v2:https://lore.kernel.org/qemu-devel/20240212205022.242968-1-iii@linux.ibm.com/
> v2 -> v3: Make the mapping configurable (Richard).
> 
> Hi,
> 
> There are apps out there that want to use SIGRTMAX, which linux-user
> currently does not map to a host signal. The reason is that with the
> current approach it's not possible to map all target signals, so it
> was decided to sacrifice the end of the range.
> 
> This series improves the situation by making the mapping configurable.
> Patch 1 is the implementation, patch 2 is a test.
> 
> Best regards,
> Ilya
> 
> Ilya Leoshkevich (2):
>    linux-user: Allow custom rt signal mappings
>    tests/tcg: Add SIGRTMIN/SIGRTMAX test

Thanks, queued.


r~