1. 18 2月, 2017 2 次提交
  2. 01 2月, 2017 1 次提交
  3. 20 1月, 2017 1 次提交
  4. 10 1月, 2017 3 次提交
  5. 18 11月, 2016 2 次提交
  6. 15 11月, 2016 4 次提交
  7. 31 10月, 2016 5 次提交
  8. 10 10月, 2016 3 次提交
  9. 24 9月, 2016 1 次提交
  10. 10 9月, 2016 1 次提交
    • S
      virtio: add virtqueue_rewind() · 297a75e6
      Stefan Hajnoczi 提交于
      virtqueue_discard() requires a VirtQueueElement but virtio-balloon does
      not migrate its in-use element.  Introduce a new function that is
      similar to virtqueue_discard() but doesn't require a VirtQueueElement.
      
      This will allow virtio-balloon to access element again after migration
      with the usual proviso that the guest may have modified the vring since
      last time.
      
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Cc: Roman Kagan <rkagan@virtuozzo.com>
      Cc: Stefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NLadi Prosek <lprosek@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      297a75e6
  11. 22 7月, 2016 3 次提交
  12. 12 7月, 2016 1 次提交
  13. 07 6月, 2016 1 次提交
  14. 08 4月, 2016 3 次提交
  15. 25 2月, 2016 2 次提交
  16. 18 2月, 2016 1 次提交
  17. 07 2月, 2016 3 次提交
  18. 29 10月, 2015 2 次提交
    • M
      virtio: drop virtqueue_map_sg · 3945ecf1
      Michael S. Tsirkin 提交于
      Deprecated in favor of virtqueue_map.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      
      3945ecf1
    • M
      virtio: introduce virtio_map · 8059feee
      Michael S. Tsirkin 提交于
      virtio_map_sg currently fails if one of the entries it's mapping is
      contigious in GPA but not HVA address space.  Introduce virtio_map which
      handles this by splitting sg entries.
      
      This new API generally turns out to be a good idea since it's harder to
      misuse: at least in one case the existing one was used incorrectly.
      
      This will still fail if there's no space left in the sg, but luckily max
      queue size in use is currently 256, while max sg size is 1024, so we
      should be OK even is all entries happen to cross a single DIMM boundary.
      
      Won't work well with very small DIMM sizes, unfortunately:
      e.g. this will fail with 4K DIMMs where a single
      request might span a large number of DIMMs.
      
      Let's hope these are uncommon - at least we are not breaking things.
      
      Note: virtio-scsi calls virtio_map_sg on data loaded from network, and
      validates input, asserting on failure.  Copy the validating code here -
      it will be dropped from virtio-scsi in a follow-up patch.
      Reported-by: NIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      
      8059feee
  19. 01 10月, 2015 1 次提交