1. 30 3月, 2016 1 次提交
    • K
      block: Move enable_write_cache to BB level · bfd18d1e
      Kevin Wolf 提交于
      Whether a write cache is used or not is a decision that concerns the
      user (e.g. the guest device) rather than the backend. It was already
      logically part of the BB level as bdrv_move_feature_fields() always kept
      it on top of the BDS tree; with this patch, the core of it (the actual
      flag and the additional flushes) is also implemented there.
      
      Direct callers of bdrv_open() must pass BDRV_O_CACHE_WB now if bs
      doesn't have a BlockBackend attached.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      bfd18d1e
  2. 01 3月, 2016 1 次提交
  3. 03 2月, 2016 2 次提交
  4. 20 1月, 2016 1 次提交
  5. 16 1月, 2016 1 次提交
    • Z
      iscsi: send readcapacity10 when readcapacity16 failed · 1cb6d137
      Zhu Lingshan 提交于
      When play with Dell MD3000 target, for sure it
      is a TYPE_DISK, but readcapacity16 would fail.
      Then we find that readcapacity10 succeeded. It
      looks like the target just support readcapacity10
      even through it is a TYPE_DISK or have some
      TYPE_ROM characteristics.
      
      This patch can give a chance to send
      readcapacity16 when readcapacity10 failed.
      This patch is not harmful to original pathes
      Signed-off-by: NZhu Lingshan <lszhu@suse.com>
      Message-Id: <1451359934-9236-1-git-send-email-lszhu@suse.com>
      [Don't fall through on UNIT ATTENTION. - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      1cb6d137
  6. 11 1月, 2016 1 次提交
  7. 12 11月, 2015 2 次提交
  8. 05 11月, 2015 1 次提交
    • F
      iscsi: Translate scsi sense into error code · e01dd3da
      Fam Zheng 提交于
      Previously we return -EIO blindly when anything goes wrong. Add a helper
      function to parse sense fields and try to make the return code more
      meaningful.
      
      This also fixes the default werror configuration (enospc) when we're
      using qcow2 on an iscsi lun. The old -EIO not being treated as out of
      space error failed to trigger vm stop.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-Id: <1446699609-11376-1-git-send-email-famz@redhat.com>
      [libiscsi 1.9 compatibility - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      e01dd3da
  9. 24 10月, 2015 1 次提交
  10. 08 9月, 2015 1 次提交
  11. 02 7月, 2015 2 次提交
    • P
      block/iscsi: restore compatiblity with libiscsi 1.9.0 · 9049736e
      Peter Lieven 提交于
      RHEL7 and others are stuck with libiscsi 1.9.0 since there
      unfortunately was an ABI breakage after that release.
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-id: 1435313881-19366-1-git-send-email-pl@kamp.de
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      9049736e
    • P
      block/iscsi: add support for request timeouts · 5dd7a535
      Peter Lieven 提交于
      libiscsi starting with 1.15 will properly support timeout of iscsi
      commands. The default will remain no timeout, but this can
      be changed via cmdline parameters, e.g.:
      
      qemu -iscsi timeout=30 -drive file=iscsi://...
      
      If a timeout occurs a reconnect is scheduled and the timed out command
      will be requeued for processing after a successful reconnect.
      
      The required API call iscsi_set_timeout is present since libiscsi
      1.10 which was released in October 2013. However, due to some bugs
      in the libiscsi code the use is not recommended before version 1.15.
      
      Please note that this patch bumps the libiscsi requirement to 1.10
      to have all function and macros defined. The patch fixes also a
      off-by-one error in the NOP timeout calculation which was fixed
      while touching these code parts.
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Message-id: 1434455107-19328-1-git-send-email-pl@kamp.de
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      5dd7a535
  12. 23 6月, 2015 3 次提交
  13. 03 6月, 2015 1 次提交
  14. 28 4月, 2015 9 次提交
  15. 09 4月, 2015 1 次提交
    • P
      block/iscsi: handle zero events from iscsi_which_events · 05b685fb
      Peter Lieven 提交于
      newer libiscsi versions may return zero events from iscsi_which_events.
      
      In this case iscsi_service will return immediately without any progress.
      To avoid busy waiting for iscsi_which_events to change we deregister all
      read and write handlers in this case and schedule a timer to periodically
      check iscsi_which_events for changed events.
      
      Next libiscsi version will introduce async reconnects and zero events
      are returned while libiscsi is waiting for a reconnect retry.
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Message-id: 1428437295-29577-1-git-send-email-pl@kamp.de
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      05b685fb
  16. 10 3月, 2015 1 次提交
  17. 28 2月, 2015 1 次提交
  18. 03 1月, 2015 1 次提交
  19. 03 11月, 2014 3 次提交
  20. 31 10月, 2014 1 次提交
  21. 20 10月, 2014 3 次提交
  22. 30 9月, 2014 1 次提交
  23. 26 9月, 2014 1 次提交