1. 27 9月, 2016 2 次提交
    • M
      virtio-net: allow increasing rx queue size · 1c0fbfa3
      Michael S. Tsirkin 提交于
      This allows increasing the rx queue size up to 1024: unlike with tx,
      guests don't put in huge S/G lists into RX so the risk of running into
      the max 1024 limitation due to some off-by-one seems small.
      
      It's helpful for users like OVS-DPDK which don't do any buffering on the
      host - 1K roughly matches 500 entries in tun + 256 in the current rx
      queue, which seems to work reasonably well. We could probably make do
      with ~750 entries but virtio spec limits us to powers of two.
      It might be a good idea to specify an s/g size limit in a future
      version.
      
      It also might be possible to make the queue size smaller down the road, 64
      seems like the minimal value which will still work (as guests seem to
      assume a queue full of 1.5K buffers is enough to process the largest
      incoming packet, which is ~64K).  No one actually asked for this, and
      with virtio 1 guests can reduce ring size without need for host
      configuration, so don't bother with this for now.
      
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Cc: Jason Wang <jasowang@redhat.com>
      Suggested-by: NPatrik Hermansson <phermansson@gmail.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      1c0fbfa3
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · 7cfdc02d
      Peter Maydell 提交于
      virtio, pc: fixes and features
      
      beginning of guest error handling for virtio devices
      amd iommu
      pc compat fixes
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Fri 23 Sep 2016 23:02:09 BST
      # gpg:                using RSA key 0x281F0DB8D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
      #      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469
      
      * remotes/mst/tags/for_upstream:
        hw/i386: AMD IOMMU IVRS table
        hw/i386: Introduce AMD IOMMU
        hw/i386/trace-events: Add AMD IOMMU trace events
        hw/pci: Prepare for AMD IOMMU
        virtio: handle virtqueue_get_head() errors
        virtio: handle virtqueue_num_heads() errors
        virtio: handle virtqueue_read_next_desc() errors
        virtio: use unsigned int for virtqueue_get_avail_bytes() index
        virtio: handle virtqueue_get_avail_bytes() errors
        virtio: handle virtqueue_map_desc() errors
        virtio: migrate vdev->broken flag
        virtio: stop virtqueue processing if device is broken
        virtio: fix stray tab character
        target-i386: turn off CPU.l3-cache only for 2.7 and older machine types
        pc: clean up COMPAT macro chaining
        virtio: add check for descriptor's mapped address
        tests: add /vhost-user/flags-mismatch test
        tests: add a simple /vhost-user/multiqueue test
        tests: add /vhost-user/connect-fail test
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7cfdc02d
  2. 24 9月, 2016 13 次提交
  3. 23 9月, 2016 25 次提交