oasis-tcs / virtio-spec

OASIS Virtual I/O Device TC: Source code for the VIRTIO (Virtual I/O) Specification maintained by the OASIS Virtual I/O Device (VIRTIO) Technical Committee

Home Page:https://github.com/oasis-tcs/virtio-spec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bring consistency to identify a virtuque by number

paravmellanox opened this issue · comments

Problem statement:

  1. Currently, a virtqueue is identified between the driver and device
    interchangeably using either number of index terminology.

  2. Between PCI and MMIO transport the queue size (depth) is
    defined as queue_size and QueueNum respectively.

To avoid confusion and to have consistency, unify them to use as Number.

Solution:
Use virtqueue index description and rename MMIO register as QueueSize.

Patch to vote: https://lists.oasis-open.org/archives/virtio-comment/202305/msg00101.html
Patch for maintainer to merge for automation: https://lore.kernel.org/virtio-comment/20230505014614.571520-1-parav@nvidia.com/