1. 30 9月, 2014 3 次提交
  2. 23 9月, 2014 1 次提交
    • F
      scsi: Optimize scsi_req_alloc · 61e68b3f
      Fam Zheng 提交于
      Zeroing sense buffer for each scsi request is not efficient, we can just
      leave it uninitialized because sense_len is set to 0.
      
      Move the implicitly zeroed fields to the end of the structure and use a
      partial memset.
      
      The explicitly initialized fields (by scsi_req_alloc or scsi_req_new)
      are moved to the beginning of the structure, before sense buffer, to
      skip the memset.
      
      Also change g_malloc0 to g_slice_alloc.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      61e68b3f
  3. 26 8月, 2014 1 次提交
  4. 29 7月, 2014 3 次提交
  5. 14 7月, 2014 1 次提交
  6. 18 6月, 2014 1 次提交
  7. 16 6月, 2014 1 次提交
  8. 16 5月, 2014 1 次提交
  9. 08 5月, 2014 1 次提交
  10. 02 4月, 2014 1 次提交
  11. 14 3月, 2014 1 次提交
  12. 22 2月, 2014 2 次提交
  13. 16 1月, 2014 1 次提交
    • P
      scsi: Support TEST UNIT READY in the dummy LUN0 · 1cb27d92
      Paolo Bonzini 提交于
      SeaBIOS waits for LUN0 to respond to the TEST UNIT READY command
      in order to decide whether it should part of the boot sequence.
      If LUN0 does not respond to the command, boot is delayed by up
      to 5 seconds.  This currently happens when there is no LUN0 on
      a target.  Fix that by adding a trivial implementation of the
      command.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      1cb27d92
  14. 09 12月, 2013 1 次提交
  15. 26 11月, 2013 1 次提交
  16. 06 11月, 2013 1 次提交
  17. 09 10月, 2013 1 次提交
  18. 12 9月, 2013 1 次提交
    • M
      scsi: Fix scsi_bus_legacy_add_drive() scsi-generic with serial · c24e7517
      Markus Armbruster 提交于
      scsi_bus_legacy_add_drive() creates either a scsi-disk or a
      scsi-generic device.  It sets property "serial" to argument serial
      unless null.  Crashes with scsi-generic, because it doesn't have such
      the property.
      
      Only usb_msd_initfn_storage() passes non-null serial.  Reproducer:
      
          $ qemu-system-x86_64 -nodefaults -display none -S -usb \
          -drive if=none,file=/dev/sg1,id=usb-drv0 \
          -device usb-storage,id=usb-msd0,drive=usb-drv0,serial=123
          qemu-system-x86_64: -device usb-storage,id=usb-msd0,drive=usb-drv0,serial=123: Property '.serial' not found
          Aborted (core dumped)
      
      Fix by handling exactly like "removable": set the property only when
      it exists.
      
      Cc: qemu-stable@nongnu.org
      Reviewed-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      c24e7517
  19. 31 8月, 2013 2 次提交
  20. 29 7月, 2013 1 次提交
  21. 23 7月, 2013 1 次提交
  22. 04 7月, 2013 1 次提交
  23. 04 5月, 2013 1 次提交
  24. 09 4月, 2013 2 次提交
  25. 06 4月, 2013 1 次提交
  26. 06 3月, 2013 1 次提交
  27. 01 3月, 2013 1 次提交
    • P
      hw: include hw header files with full paths · 83c9f4ca
      Paolo Bonzini 提交于
      Done with this script:
      
      cd hw
      for i in `find . -name '*.h' | sed 's/^..//'`; do
        echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
      done | sed -i -f - `find . -type f`
      
      This is so that paths remain valid as files are moved.
      
      Instead, files in hw/dataplane are referenced with the relative path.
      We know they are not going to move to include/, and they are the only
      include files that are in subdirectories _and_ move.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      83c9f4ca
  28. 22 1月, 2013 1 次提交
  29. 11 1月, 2013 1 次提交
    • A
      Make all static TypeInfos const · 8c43a6f0
      Andreas Färber 提交于
      Since 39bffca2 (qdev: register all
      types natively through QEMU Object Model), TypeInfo as used in
      the common, non-iterative pattern is no longer amended with information
      and should therefore be const.
      
      Fix the documented QOM examples:
      
       sed -i 's/static TypeInfo/static const TypeInfo/g' include/qom/object.h
      
      Since frequently the wrong examples are being copied by contributors of
      new devices, fix all types in the tree:
      
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*.c
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*/*.c
      
      This also avoids to piggy-back these changes onto real functional
      changes or other refactorings.
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8c43a6f0
  30. 19 12月, 2012 2 次提交
  31. 05 10月, 2012 1 次提交
  32. 21 9月, 2012 1 次提交