vfio/mtty: Enable migration support
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 16 Oct 2023 22:47:36 +0000 (16:47 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 24 Oct 2023 21:03:10 +0000 (15:03 -0600)
commit2b88119e35b00d8cb418d86abbace3b90a993bd7
treebe79c5a54711aa5a7d5a4e53453edbf61980aaeb
parent293fbc28818135743f54d46c418ede3e4a20a742
vfio/mtty: Enable migration support

The mtty driver exposes a PCI serial device to userspace and therefore
makes an easy target for a sample device supporting migration.  The device
does not make use of DMA, therefore we can easily claim support for the
migration P2P states, as well as dirty logging.  This implementation also
makes use of PRE_COPY support in order to provide migration stream
compatibility testing, which should generally be considered good practice.

Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20231016224736.2575718-3-alex.williamson@redhat.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
samples/vfio-mdev/mtty.c