mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
linux-user: Allow custom rt signal mappings
Some applications want to use low priority realtime signals (e.g., SIGRTMAX). Currently QEMU cannot map all target realtime signals to host realtime signals, and chooses to sacrifice the end of the target realtime signal range. Allow users to choose how to map target realtime signals to host realtime signals using the new -t option, the new QEMU_RTSIG_MAP environment variable, and the new -Drtsig_map=\"...\" meson flag. To simplify things, the meson flag is not per-target, because the intended use case is app-specific qemu-user builds. The mapping is specified using the "tsig hsig count[,...]" syntax. Target realtime signals [tsig,tsig+count) are mapped to host realtime signals [hsig,hsig+count). Care is taken to avoid double and out-of-range mappings. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20241029232211.206766-2-iii@linux.ibm.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
6e9dcfb906
commit
c107521e0e
6 changed files with 106 additions and 23 deletions
|
@ -3178,7 +3178,8 @@ foreach target : target_dirs
|
|||
config_target += {
|
||||
'CONFIG_USER_ONLY': 'y',
|
||||
'CONFIG_QEMU_INTERP_PREFIX':
|
||||
get_option('interp_prefix').replace('%M', config_target['TARGET_NAME'])
|
||||
get_option('interp_prefix').replace('%M', config_target['TARGET_NAME']),
|
||||
'CONFIG_QEMU_RTSIG_MAP': get_option('rtsig_map'),
|
||||
}
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue