Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vdpa: add VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK flag

This feature flag allows the driver enabling virtqueues both before and
after DRIVER_OK.

This is needed for software assisted live migration, so userland can
restore the device status in devices with control virtqueue before the
dataplane is enabled.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Shannon Nelson <shannon.nelson@amd.com>
Message-Id: <20230609092127.170673-2-eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Eugenio Pérez and committed by
Michael S. Tsirkin
8b59b4da c1081002

+4
+4
include/uapi/linux/vhost_types.h
··· 181 181 #define VHOST_BACKEND_F_SUSPEND 0x4 182 182 /* Device can be resumed */ 183 183 #define VHOST_BACKEND_F_RESUME 0x5 184 + /* Device supports the driver enabling virtqueues both before and after 185 + * DRIVER_OK 186 + */ 187 + #define VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK 0x6 184 188 185 189 #endif