Alex Bennée f7e68c9c99 tcg/plugins: implement a qemu_plugin_user_exit helper
In user-mode emulation there is a small race between preexit_cleanup
and exit_group() which means we may end up calling instrumented
instructions before the kernel reaps child threads. To solve this we
implement a new helper which ensures the callbacks are flushed along
with any translations before we let the host do it's a thing.

While we are at it make the documentation of
qemu_plugin_register_atexit_cb clearer as to what the user can expect.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Acked-by: Warner Losh <imp@bsdimp.com>
Message-Id: <20210720232703.10650-21-alex.bennee@linaro.org>
2021-07-23 17:22:16 +01:00
..
2020-11-03 09:42:52 -05:00
2020-12-10 12:15:18 -05:00
2020-01-06 18:41:32 +04:00
2016-06-07 18:19:23 +03:00
2017-10-16 20:57:13 +03:00
2020-10-15 16:06:27 +02:00
2019-09-11 08:46:17 +02:00
2020-12-10 17:16:44 +01:00
2021-07-06 08:33:51 +02:00
2021-07-09 18:19:00 +02:00
2018-09-26 08:55:54 -07:00
2019-04-18 22:18:59 +02:00
2019-08-16 13:31:52 +02:00
2018-01-16 14:54:50 +01:00
2016-02-23 12:43:05 +00:00
2021-04-30 12:27:47 +02:00
2018-08-24 20:26:37 +02:00
2016-09-15 15:32:22 +03:00
2017-01-24 23:26:52 +03:00
2021-04-01 15:27:44 +04:00