]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/virtio/virtio.c
Merge tag 'hw-misc-20240410' of https://github.com/philmd/qemu into staging
[thirdparty/qemu.git] / hw / virtio / virtio.c
index c5bedca8485add680f7343d480d22593d86edfb0..871674f9bef1c4a238db5c8e1407db76d8860b13 100644 (file)
@@ -4145,3 +4145,13 @@ static void virtio_register_types(void)
 }
 
 type_init(virtio_register_types)
+
+QEMUBH *virtio_bh_new_guarded_full(DeviceState *dev,
+                                   QEMUBHFunc *cb, void *opaque,
+                                   const char *name)
+{
+    DeviceState *transport = qdev_get_parent_bus(dev)->parent;
+
+    return qemu_bh_new_full(cb, opaque, name,
+                            &transport->mem_reentrancy_guard);
+}