Re: [RFC PATCH 5/5] nvme-vfio: Add a document for the NVMe device

From: Christoph Hellwig
Date: Tue Dec 06 2022 - 09:31:42 EST


On Tue, Dec 06, 2022 at 10:20:26AM -0400, Jason Gunthorpe wrote:
> In the VFIO restore model there is no "live OS" on resume. The
> load/resume cycle is as destructive as reset to the vfio device.

Of course there may be and OS. As soon as the VF is live Linux
will by default bind to it. And that's the big problem here,
the VF should not actually exist or at least not be usable when
such a restore happens - or to say it in NVMe terms, the Secondary
Controller better be in offline state when state is loaded into it.