History

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.

Eugenio Pérez committed 3 years ago

Commit 8b59b4d1 parent c1081001 file · +4 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/vhost_types.h+4−0
@@ -181,5 +181,9 @@ struct vhost_vdpa_iova_range { · 180 unmodified lines
181#define VHOST_BACKEND_F_SUSPEND 0x4181#define VHOST_BACKEND_F_SUSPEND 0x4
182/* Device can be resumed */182/* Device can be resumed */
183#define VHOST_BACKEND_F_RESUME 0x5183#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#endif189#endif