]> git.ipfire.org Git - thirdparty/qemu.git/commit
async: Add an optional reentrancy guard to the BH API
authorAlexander Bulekov <alxndr@bu.edu>
Thu, 27 Apr 2023 21:10:07 +0000 (17:10 -0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 10 Sep 2023 16:01:33 +0000 (19:01 +0300)
commit932cf49f0620544d1fb37f1d8dd02219a3636ee9
treed0f2788f8b7491a774288f710959a6cd1f043f72
parenta08c78dda7e018fbbe33bc7979f7a53f89a488b5
async: Add an optional reentrancy guard to the BH API

Devices can pass their MemoryReentrancyGuard (from their DeviceState),
when creating new BHes. Then, the async API will toggle the guard
before/after calling the BH call-back. This prevents bh->mmio reentrancy
issues.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-Id: <20230427211013.2994127-3-alxndr@bu.edu>
[thuth: Fix "line over 90 characters" checkpatch.pl error]
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit 9c86c97f12c060bf7484dd931f38634e166a81f0)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
docs/devel/multiple-iothreads.txt
include/block/aio.h
include/qemu/main-loop.h
tests/unit/ptimer-test-stubs.c
util/async.c
util/main-loop.c
util/trace-events