]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/virtio: Introduce virtio_bh_new_guarded() helper
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 4 Apr 2024 18:56:11 +0000 (20:56 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 10 Apr 2024 16:17:04 +0000 (19:17 +0300)
commite070e5e6748e3217028fa21aa30bb51f862368c8
treecbaab21ee39ce75f08409b000d2af0d4cca2ece5
parentd6e7ec1f8e9a38f55cfd2c581fa8e3afe05b0499
hw/virtio: Introduce virtio_bh_new_guarded() helper

Introduce virtio_bh_new_guarded(), similar to qemu_bh_new_guarded()
but using the transport memory guard, instead of the device one
(there can only be one virtio device per virtio bus).

Inspired-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20240409105537.18308-2-philmd@linaro.org>
(cherry picked from commit ec0504b989ca61e03636384d3602b7bf07ffe4da)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: trivial #include context fixup in include/hw/virtio/virtio.h)
hw/virtio/virtio.c
include/hw/virtio/virtio.h