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
..
2021-05-10 15:41:50 -04:00
2021-06-02 06:51:09 +02:00
2021-07-21 07:45:38 -10:00
2020-11-15 17:04:40 +01:00
2016-07-12 16:20:46 +02:00
2019-07-15 15:39:02 +02:00
2021-07-02 17:35:08 +02:00
2021-05-10 17:21:54 +01:00
2020-11-15 17:04:40 +01:00
2021-01-07 05:09:41 -10:00
2021-06-25 14:24:24 +03:00
2021-06-16 15:03:26 +02:00
2021-06-04 13:50:01 +02:00
2020-06-23 15:46:05 +01:00
2021-06-18 10:59:52 -05:00
2020-03-16 23:02:21 +01:00
2019-06-12 13:20:20 +02:00
2021-01-24 20:10:54 +01:00
2019-06-11 20:22:09 +02: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
2019-05-13 08:58:55 +02:00
2012-12-19 08:32:39 +01:00
2021-02-01 10:50:55 +00:00
2021-02-08 14:43:55 +01:00
2021-02-07 20:38:34 +00:00
2016-06-07 18:19:23 +03:00
2020-11-15 17:04:40 +01:00
2017-10-16 20:57:13 +03:00
2019-05-22 12:38:54 -04:00
2020-03-18 14:03:46 -04:00
2020-10-15 16:06:27 +02:00
2021-05-16 07:12:26 -05:00
2021-03-09 21:47:45 +01:00
2021-06-16 14:33:52 +01:00
2021-02-03 08:00:33 -06:00
2018-06-29 12:22:28 +01:00
2019-05-13 08:58:55 +02:00
2021-05-14 16:14:10 +02:00
2021-06-16 15:03:26 +02:00
2018-03-12 11:10:20 +00:00
2020-09-23 16:07:44 +01:00
2021-07-05 11:40:32 +01:00
2019-09-11 08:46:17 +02:00
2021-06-15 20:27:38 +02:00
2021-07-09 18:20:27 +02:00
2019-09-24 12:18:47 +01:00
2020-12-10 17:16:44 +01:00
2019-01-11 15:46:55 +01:00
2021-07-06 08:33:51 +02:00
2021-07-09 18:19:00 +02:00
2016-07-12 16:20:46 +02:00
2021-07-14 14:33:53 +01:00
2021-07-23 17:22:16 +01:00
2019-05-13 08:58:55 +02:00
2018-02-05 18:09:45 +01:00
2021-06-25 14:24:24 +03:00
2019-06-12 13:20:20 +02:00
2021-05-26 14:49:46 +02:00
2021-07-23 17:22:16 +01:00
2019-04-18 22:18:59 +02:00
2018-09-26 08:55:54 -07:00
2019-04-18 22:18:59 +02:00
2020-09-23 16:07:44 +01:00
2019-08-16 13:31:52 +02:00
2021-06-25 14:22:21 +03:00
2020-09-23 16:07:44 +01:00
2020-09-23 16:07:44 +01:00
2018-01-16 14:54:50 +01:00
2021-06-21 05:49:01 +02:00
2020-09-23 16:07:44 +01:00
2021-06-18 10:59:53 -05:00
2021-07-21 07:45:38 -10:00
2019-05-13 08:58:55 +02:00
2019-05-13 08:58:55 +02:00
2021-06-16 15:03:26 +02:00
2021-06-16 15:03:26 +02:00
2021-06-16 15:03:26 +02:00
2017-09-06 10:12:02 +02:00
2019-06-12 13:20:20 +02:00
2016-02-23 12:43:05 +00:00
2021-04-12 12:27:14 +10:00
2021-04-30 12:27:47 +02:00
2020-06-16 14:49:05 +01:00
2021-02-18 08:19:08 +00:00
2018-08-24 20:26:37 +02:00
2019-02-01 13:46:45 +01:00
2016-09-15 15:32:22 +03:00
2021-02-08 11:19:51 +00:00
2020-05-14 15:03:08 +01:00
2020-10-05 09:35:52 +01:00
2020-12-08 13:48:58 -05:00
2018-10-02 19:09:12 +02:00
2017-01-24 23:26:52 +03:00
2021-01-19 14:38:51 +00:00
2021-04-01 15:27:44 +04:00