[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231013195653.1222141-1-alex.williamson@redhat.com>
Date: Fri, 13 Oct 2023 13:56:51 -0600
From: Alex Williamson <alex.williamson@...hat.com>
To: alex.williamson@...hat.com
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org, clg@...hat.com
Subject: [PATCH 0/2] vfio/mtty: Add migration support
We've seen a request for CI and development to have access to migratable
vfio devices without any specific hardware requirements. One way to do
that is to enable migration support on the mtty mdev sample driver, as
done here.
This device is particularly easy to migrate because it doesn't actually
do DMA, or in fact much of anything. Therefore we can claim P2P and
dirty logging as well. PRE_COPY support is also included in a similar
fashion to hisi_acc. This provides early compatibility testing, which
is probably over-done, but perhaps illustrates good practice with
matching data stream magic, versioning, and feature flags. These might
later be used for backwards compatibility, particularly since I'm not
positive that copying the struct serial_port between source and
destination is sufficient.
Along the way, testing migration where the source and target are
incompatible, I fixed an eventfd leak. Thanks,
Alex
Alex Williamson (2):
vfio/mtty: Fix eventfd leak
vfio/mtty: Enable migration support
samples/vfio-mdev/mtty.c | 610 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 605 insertions(+), 5 deletions(-)
--
2.40.1
Powered by blists - more mailing lists