Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-19317

netkvm: Prevent possible violation of virtio spec in TX path

    • virtio-win-prewhql-0.1-253
    • None
    • rhel-sst-virtualization-windows
    • ssg_virtualization
    • 11
    • None
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • None

      Goal

      Currently where working with non-default TX queue size (less than 256) the netkvm driver will limit the maximum number of TX descriptors to TX queue size, but via indirect transfer can create a scatter-gather chain of 256 descriptors which violates the virtio spec (2.7.5.3.1 of the spec 1.2).  To behave properly we need to limit also the usage of the indirect are to be not more than queue size.

      The problem is especially possible when the driver works with hardware device which is able to report any custom size of the queue.

      Acceptance Criteria

      Configure the driver with TX capacity of 64 (instead of default of 1024) and check in the driver logs that the driver limit the SG (scatter-gather) area " Limit m_SGTableCapacity by 64"

              yuri.benditovich Yuri Benditovich
              yuri.benditovich Yuri Benditovich
              Virt Windows SST Bugs Virt Windows SST Bugs
              Wenkang Ji Wenkang Ji
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: