• Home
  • Raw
  • Download

Lines Matching +full:cmd +full:- +full:max +full:- +full:name

2 VDUSE - "vDPA Device in Userspace"
9 possible to implement software-emulated vDPA devices in userspace. And
21 ----------------------------
28 2. Setup each virtqueue with ioctl(VDUSE_VQ_SETUP) on /dev/vduse/$NAME.
30 3. Begin processing VDUSE messages from /dev/vduse/$NAME. The first
41 2. Close the file descriptor referring to /dev/vduse/$NAME.
49 .. code-block:: c
51 static int netlink_add_vduse(const char *name, enum vdpa_command cmd)
59 return -ENOMEM;
72 if (!genlmsg_put(msg, NL_AUTO_PORT, NL_AUTO_SEQ, famid, 0, 0, cmd, 0))
75 NLA_PUT_STRING(msg, VDPA_ATTR_DEV_NAME, name);
76 if (cmd == VDPA_CMD_DEV_NEW)
92 return -1;
96 ---------------
100 such as device name (uniquely identify a VDUSE device), virtio features, virtio
102 Then a char device interface (/dev/vduse/$NAME) is exported to userspace for device
103 emulation. Userspace can use the VDUSE_VQ_SETUP ioctl on /dev/vduse/$NAME to
104 add per-virtqueue configuration such as the max size of virtqueue to the device.
108 /dev/vduse/$NAME to receive/reply some control messages from/to VDUSE kernel
111 .. code-block:: c
121 return -1;
133 return -1;
140 - VDUSE_GET_VQ_STATE: Get the state for virtqueue, userspace should return
144 - VDUSE_SET_STATUS: Set the device status, userspace should follow
145 the virtio spec: https://docs.oasis-open.org/virtio/virtio/v1.1/virtio-v1.1.html
150 - VDUSE_UPDATE_IOTLB: Notify userspace to update the memory mapping for specified
164 .. code-block:: c
203 size = entry.last - entry.start + 1;
204 *len = entry.last - iova + 1;
218 return addr + iova - entry.start;