On 24.11.21 07:43, Emanuele Giuseppe Esposito wrote:
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 <eespo...@redhat.com>
---
  block/block-backend.c  | 83 ++++++++++++++++++++++++++++++++++++++++++
  softmmu/qdev-monitor.c |  2 +
  2 files changed, 85 insertions(+)

So given my thoughts on patch 5, I believe that blk_set_perm() and blk_get_perm() should get assertions here.

Hanna


Reply via email to