History

vdpa: Enable a user to add and delete a vdpa device

Add the ability to add and delete a vdpa device. Examples: Create a vdpa device of type network named "foo2" from the management device vdpasim: $ vdpa dev add mgmtdev vdpasim_net name foo2 Delete the vdpa device after its use: $ vdpa dev del foo2

Parav Pandit committed 5 years ago

Commit 903f7bc1 parent 33b34753 files · +143 −10Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/vdpa.h+4−0
@@ -14,6 +14,8 @@ enum vdpa_command { · 13 unmodified lines
1414 VDPA_CMD_UNSPEC,
1515 VDPA_CMD_MGMTDEV_NEW,
1616 VDPA_CMD_MGMTDEV_GET, /* can dump */
17+ VDPA_CMD_DEV_NEW,
18+ VDPA_CMD_DEV_DEL,
1719 };
1820
1921 enum vdpa_attr {
@@ -24,6 +26,8 @@ enum vdpa_attr { · 4 unmodified lines
2426 VDPA_ATTR_MGMTDEV_DEV_NAME, /* string */
2527 VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES, /* u64 */
2628
29+ VDPA_ATTR_DEV_NAME, /* string */
30+
2731 /* new attributes must be added above here */
2832 VDPA_ATTR_MAX,
2933 };