1. 06 11月, 2013 1 次提交
  2. 09 10月, 2013 1 次提交
  3. 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
  4. 31 8月, 2013 2 次提交
  5. 29 7月, 2013 1 次提交
  6. 23 7月, 2013 1 次提交
  7. 04 7月, 2013 1 次提交
  8. 04 5月, 2013 1 次提交
  9. 09 4月, 2013 2 次提交
  10. 06 4月, 2013 1 次提交
  11. 06 3月, 2013 1 次提交
  12. 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
  13. 22 1月, 2013 1 次提交
  14. 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
  15. 19 12月, 2012 2 次提交
  16. 05 10月, 2012 1 次提交
  17. 21 9月, 2012 1 次提交
  18. 18 8月, 2012 1 次提交
  19. 10 8月, 2012 1 次提交
  20. 04 8月, 2012 1 次提交
  21. 03 8月, 2012 1 次提交
  22. 27 7月, 2012 5 次提交
  23. 26 7月, 2012 2 次提交
  24. 10 7月, 2012 1 次提交
    • P
      scsi: add free_request callback · 8e86b93c
      Paolo Bonzini 提交于
      Most device models have a simple lifecycle for the hba_private field
      and they can free it when a request is completed or cancelled.
      However, in some cases it may be simpler to tie the lifetime
      of hba_private to that of the included SCSIRequest.  This patch
      adds a free_request callback to SCSIBusInfo that lets an HBA
      device model do exactly that.
      
      Normally, device models use req->hba_private == NULL to flag requests
      that have been completed already.  Device models that use free_request
      will still need to track this using a flag.  This is the reason why
      "converting" existing HBAs to use free_request adds complexity and
      makes little sense.  It is simply an additional convenience that is
      provided by the SCSI layer.  USB-attached storage will be the first
      user.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      8e86b93c
  25. 02 7月, 2012 5 次提交
  26. 20 6月, 2012 1 次提交
  27. 18 6月, 2012 2 次提交