block/block-backend.c: assertions for block-backend
commit0439c5a4623d674efa0c72abd62ca6e98bb7cf87
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Thu, 3 Mar 2022 15:15:53 +0000 (3 10:15 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Mar 2022 17:18:25 +0000 (4 18:18 +0100)
treea4d98fda84cf1b027e8a14af413b1c055ac252c9
parenta2c4c3b19bb2453008dfb5efdb35be0258b4cb2b
block/block-backend.c: assertions for block-backend

All the global state (GS) API functions will check that
qemu_in_main_thread() returns true. If not, it means
that the safety of BQL cannot be guaranteed, and
they need to be moved to I/O.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20220303151616.325444-9-eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
softmmu/qdev-monitor.c