1. 11 6月, 2015 1 次提交
  2. 01 6月, 2015 1 次提交
  3. 10 3月, 2015 1 次提交
  4. 18 2月, 2015 2 次提交
    • M
      monitor: Clean up around monitor_handle_fd_param() · 1677f4c6
      Markus Armbruster 提交于
      monitor_handle_fd_param() is a wrapper around
      monitor_handle_fd_param2() that feeds errors to qerror_report_err()
      instead of returning them.  qerror_report_err() is inappropriate in
      many contexts.  monitor_handle_fd_param() looks simpler than
      monitor_handle_fd_param2(), which tempts use.  Remove the temptation:
      drop the wrapper and open-code the (trivial) error handling instead.
      
      Replace the open-coded qerror_report_err() by error_report_err() in
      places that already use error_report().  Turns out that's everywhere.
      
      While there, rename monitor_handle_fd_param2() to monitor_fd_param().
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      1677f4c6
    • M
      vhost-scsi: Improve error reporting for invalid vhostfd · 248337e1
      Markus Armbruster 提交于
      We get two error messages: one from monitor_handle_fd_param2(), and
      another one from vhost_scsi_realize().  The second one gets suppressed
      in QMP context.
      
      That's because monitor_handle_fd_param() calls qerror_report_err().
      Calling qerror_report_err() is always inappropriate in realize
      methods, because it doesn't return the Error object.  It either
      reports the error to stderr or the human monitor, or it stores it in
      the QMP monitor, where it makes the QMP command fail even when the
      realize method ignores the error and succeeds.  Fortunately,
      vhost_scsi_realize() doesn't do that.
      
      Fix by switching to monitor_handle_fd_param2().
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
      248337e1
  5. 12 2月, 2015 3 次提交
  6. 01 12月, 2014 1 次提交
  7. 23 9月, 2014 1 次提交
  8. 03 9月, 2014 1 次提交
  9. 19 6月, 2014 5 次提交
  10. 05 6月, 2014 1 次提交
  11. 10 12月, 2013 3 次提交
  12. 29 7月, 2013 1 次提交
  13. 18 6月, 2013 1 次提交
  14. 25 4月, 2013 2 次提交
  15. 19 4月, 2013 1 次提交
    • N
      vhost-scsi: new device supporting the tcm_vhost Linux kernel module · 5e9be92d
      Nicholas Bellinger 提交于
      The WWPN specified in configfs is passed to "-device vhost-scsi-pci".
      The tgpt field of the SET_ENDPOINT ioctl is obsolete now, so it is not
      available from the QEMU command-line.  Instead, I hardcode it to zero.
      
      Changes in Patch-v2:
         - Add vhost_scsi_get_features() in order to determine feature bits
           supports by host kernel (mst + nab)
         - Re-enable usage of DEFINE_VIRTIO_COMMON_FEATURES, and allow
           EVENT_IDX to be disabled by host in vhost_scsi_get_features()
         - Drop unused hotplug bit in DEFINE_VHOST_SCSI_PROPERTIES
      
      Changes in Patch-v1:
         - Set event_idx=off by default (nab, thanks asias)
         - Disable hotplug feature bit for v3.9 tcm_vhost kernel code, need to
           re-enable in v3.10 (nab)
         - Update to latest qemu.git/master HEAD
      
      Changes in WIP-V3:
         - Drop ioeventfd vhost_scsi_properties (asias, thanks stefanha)
         - Add CONFIG_VHOST_SCSI (asias, thanks stefanha)
         - Add hotplug feature bit
      
      Changes in WIP-V2:
         - Add backend guest masking support (nab)
         - Bump ABI_VERSION to 1 (nab)
         - Set up set_guest_notifiers (asias)
         - Set up vs->dev.vq_index (asias)
         - Drop vs->vs.vdev.{set,clear}_vhost_endpoint (asias)
         - Drop VIRTIO_CONFIG_S_DRIVER check in vhost_scsi_set_status (asias)
      
      Howto:
         Use the latest seabios, at least commit b44a7be17b
         git clone git://git.seabios.org/seabios.git
         make
         cp out/bios.bin /usr/share/qemu/bios.bin
         qemu -device vhost-scsi-pci,wwpn=naa.6001405bd4e8476d,event_idx=off
      ...
      
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      Signed-off-by: NAsias He <asias@redhat.com>
      [ Rebase on top of VirtIOSCSICommon patch, fix bugs in feature
        negotiation and irqfd masking - Paolo ]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      5e9be92d