Skip to content

Commit 8b59b4d

Browse files
eugpermarmstsirkin
authored andcommitted
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>
1 parent c108100 commit 8b59b4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/uapi/linux/vhost_types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,5 +181,9 @@ struct vhost_vdpa_iova_range {
181181
#define VHOST_BACKEND_F_SUSPEND 0x4
182182
/* Device can be resumed */
183183
#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
184188

185189
#endif

0 commit comments

Comments
 (0)