[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/8] virtio: categorize callbacks in GS
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH 4/8] virtio: categorize callbacks in GS |
Date: |
Tue, 5 Jul 2022 15:25:47 +0100 |
On Thu, Jun 09, 2022 at 10:37:23AM -0400, Emanuele Giuseppe Esposito wrote:
> All the callbacks below are always running in the main loop.
>
> The callbacks are the following:
> - start/stop_ioeventfd: these are the callbacks where
> blk_set_aio_context(iothread) is done, so they are called in the main
> loop.
>
> - save and load: called during migration, when VM is stopped from the
> main loop.
>
> - reset: before calling this callback, stop_ioeventfd is invoked, so
> it can only run in the main loop.
>
> - set_status: going through all the callers we can see it is called
> from a MemoryRegionOps callback, which always run in the main loop.
>
> - realize: iothread is not even created yet.
>
> Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
> ---
> hw/block/virtio-blk.c | 2 ++
> hw/virtio/virtio-bus.c | 5 +++++
> hw/virtio/virtio-pci.c | 2 ++
> hw/virtio/virtio.c | 8 ++++++++
> 4 files changed, 17 insertions(+)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 4/8] virtio: categorize callbacks in GS,
Stefan Hajnoczi <=