]> xenbits.xensource.com Git - qemu-xen.git/commit
plugins: add [pre|post]fork helpers to linux-user
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 4 Oct 2022 11:52:21 +0000 (12:52 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 6 Oct 2022 10:53:41 +0000 (11:53 +0100)
commitf7e15affa8e574a800180de3bde1a6462aec7241
treec759a5deb49756097f301652837b14ffc91ef6b2
parent37e62694e4bcc937c8c5fa6153302a5451fb12c5
plugins: add [pre|post]fork helpers to linux-user

Special care needs to be taken in ensuring locks are in a consistent
state across fork events. Add helpers so the plugin system can ensure
that.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/358
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20221004115221.2174499-1-alex.bennee@linaro.org>
include/qemu/plugin.h
linux-user/main.c
plugins/core.c