vhost-user-fs: Implement internal migration
commitbca3e2a13814253b4ed878a3313688554edd1b66
authorHanna Czenczek <hreitz@redhat.com>
Mon, 16 Oct 2023 13:42:43 +0000 (16 15:42 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Nov 2023 08:39:10 +0000 (7 03:39 -0500)
tree095c4bf7baadb5bc9a87a6d1e219d29cf941c9d4
parent4a00d5d7f4b65ba99b33d5a0d6f8c563895839ea
vhost-user-fs: Implement internal migration

A virtio-fs device's VM state consists of:
- the virtio device (vring) state (VMSTATE_VIRTIO_DEVICE)
- the back-end's (virtiofsd's) internal state

We get/set the latter via the new vhost operations to transfer migratory
state.  It is its own dedicated subsection, so that for external
migration, it can be disabled.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
Message-Id: <20231016134243.68248-8-hreitz@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-user-fs.c