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
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t