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
14 VDPA_CMD_UNSPEC,14 VDPA_CMD_UNSPEC,
15 VDPA_CMD_MGMTDEV_NEW,15 VDPA_CMD_MGMTDEV_NEW,
16 VDPA_CMD_MGMTDEV_GET, /* can dump */16 VDPA_CMD_MGMTDEV_GET, /* can dump */
17 VDPA_CMD_DEV_NEW,
18 VDPA_CMD_DEV_DEL,
17};19};
18 20
19enum vdpa_attr {21enum vdpa_attr {
@@ -24,6 +26,8 @@ enum vdpa_attr { · 4 unmodified lines
24 VDPA_ATTR_MGMTDEV_DEV_NAME, /* string */26 VDPA_ATTR_MGMTDEV_DEV_NAME, /* string */
25 VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES, /* u64 */27 VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES, /* u64 */
26 28
29 VDPA_ATTR_DEV_NAME, /* string */
30
27 /* new attributes must be added above here */31 /* new attributes must be added above here */
28 VDPA_ATTR_MAX,32 VDPA_ATTR_MAX,
29};33};