1. 15 6月, 2017 1 次提交
    • F
      vhost-user-scsi: Introduce vhost-user-scsi host device · f12c1ebd
      Felipe Franciosi 提交于
      This commit introduces a vhost-user device for SCSI. This is based
      on the existing vhost-scsi implementation, but done over vhost-user
      instead. It also uses a chardev to connect to the backend. Unlike
      vhost-scsi (today), VMs using vhost-user-scsi can be live migrated.
      
      To use it, start Qemu with a command line equivalent to:
      
      qemu-system-x86_64 \
             -chardev socket,id=vus0,path=/tmp/vus.sock \
             -device vhost-user-scsi-pci,chardev=vus0,bus=pci.0,addr=...
      
      A separate commit presents a sample application linked with libiscsi to
      provide a backend for vhost-user-scsi.
      Signed-off-by: NFelipe Franciosi <felipe@nutanix.com>
      Message-Id: <1488479153-21203-4-git-send-email-felipe@nutanix.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      f12c1ebd
  2. 05 5月, 2017 1 次提交
  3. 24 4月, 2017 1 次提交
  4. 24 3月, 2017 1 次提交
  5. 18 2月, 2017 1 次提交
  6. 18 11月, 2016 1 次提交
    • P
      virtio: set ISR on dataplane notifications · 83d768b5
      Paolo Bonzini 提交于
      Dataplane has been omitting forever the step of setting ISR when
      an interrupt is raised.  This caused little breakage, because the
      specification actually says that ISR may not be updated in MSI mode.
      
      Some versions of the Windows drivers however didn't clear MSI mode
      correctly, and proceeded using polling mode (using ISR, not the used
      ring index!) for crashdump and hibernation.  If it were just crashdump
      and hibernation it would not be a big deal, but recent releases of
      Windows do not really shut down, but rather log out and hibernate to
      make the next startup faster.  Hence, this manifested as a more serious
      hang during shutdown with e.g. Windows 8.1 and virtio-win 1.8.0 RPMs.
      Newer versions fixed this, while older versions do not use MSI at all.
      
      The failure has always been there for virtio dataplane, but it became
      visible after commits 9ffe337c ("virtio-blk: always use dataplane path
      if ioeventfd is active", 2016-10-30) and ad07cd69 ("virtio-scsi: always
      use dataplane path if ioeventfd is active", 2016-10-30) made virtio-blk
      and virtio-scsi always use the dataplane code under KVM.  The good news
      therefore is that it was not a bug in the patches---they were doing
      exactly what they were meant for, i.e. shake out remaining dataplane bugs.
      
      The fix is not hard, so it's worth arranging for the broken drivers.
      The virtio_should_notify+event_notifier_set pair that is common to
      virtio-blk and virtio-scsi dataplane is replaced with a new public
      function virtio_notify_irqfd that also sets ISR.  The irqfd emulation
      code now need not set ISR anymore, so virtio_irq is removed.
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Tested-by: NFarhan Ali <alifm@linux.vnet.ibm.com>
      Tested-by: NAlex Williamson <alex.williamson@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      83d768b5
  7. 31 10月, 2016 1 次提交
  8. 22 7月, 2016 1 次提交
  9. 12 7月, 2016 1 次提交
  10. 07 6月, 2016 1 次提交
  11. 08 4月, 2016 2 次提交
  12. 25 2月, 2016 1 次提交
  13. 07 2月, 2016 1 次提交
    • P
      virtio: move allocation to virtqueue_pop/vring_pop · 51b19ebe
      Paolo Bonzini 提交于
      The return code of virtqueue_pop/vring_pop is unused except to check for
      errors or 0.  We can thus easily move allocation inside the functions
      and just return a pointer to the VirtQueueElement.
      
      The advantage is that we will be able to allocate only the space that
      is needed for the actual size of the s/g list instead of the full
      VIRTQUEUE_MAX_SIZE items.  Currently VirtQueueElement takes about 48K
      of memory, and this kind of allocation puts a lot of stress on malloc.
      By cutting the size by two or three orders of magnitude, malloc can
      use much more efficient algorithms.
      
      The patch is pretty large, but changes to each device are testable
      more or less independently.  Splitting it would mostly add churn.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      51b19ebe
  14. 05 2月, 2016 1 次提交
  15. 03 2月, 2016 1 次提交
  16. 11 6月, 2015 1 次提交
  17. 28 4月, 2015 1 次提交
  18. 12 3月, 2015 4 次提交
  19. 26 2月, 2015 1 次提交
  20. 12 2月, 2015 1 次提交
  21. 12 11月, 2014 1 次提交
  22. 23 10月, 2014 2 次提交
  23. 30 9月, 2014 7 次提交
  24. 23 9月, 2014 5 次提交
  25. 14 7月, 2014 1 次提交