1. 12 7月, 2016 1 次提交
  2. 07 6月, 2016 1 次提交
  3. 08 4月, 2016 3 次提交
  4. 25 2月, 2016 2 次提交
  5. 18 2月, 2016 1 次提交
  6. 07 2月, 2016 3 次提交
  7. 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
  8. 01 10月, 2015 1 次提交
  9. 10 9月, 2015 1 次提交
  10. 05 8月, 2015 1 次提交
  11. 27 7月, 2015 3 次提交
  12. 11 6月, 2015 5 次提交
  13. 04 6月, 2015 1 次提交
  14. 01 6月, 2015 1 次提交
  15. 31 5月, 2015 5 次提交
  16. 29 5月, 2015 1 次提交
  17. 28 4月, 2015 2 次提交
  18. 26 2月, 2015 3 次提交
  19. 10 12月, 2014 1 次提交
  20. 30 9月, 2014 1 次提交
  21. 30 6月, 2014 1 次提交
    • G
      virtio: add endian-ambivalent support to VirtIODevice · 616a6552
      Greg Kurz 提交于
      Some CPU families can dynamically change their endianness. This means we
      can have little endian ppc or big endian arm guests for example. This has
      an impact on legacy virtio data structures since they are target endian.
      We hence introduce a new property to track the endianness of each virtio
      device. It is reasonnably assumed that endianness won't change while the
      device is in use : we hence capture the device endianness when it gets
      reset.
      
      We migrate this property in a subsection, after the device descriptor. This
      means the load code must not rely on it until it is restored. As a consequence,
      the vring sanity checks had to be moved after the call to vmstate_load_state().
      We enforce paranoia by poisoning the property at the begining of virtio_load().
      Signed-off-by: NGreg Kurz <gkurz@linux.vnet.ibm.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      616a6552