1. 26 7月, 2012 2 次提交
  2. 17 7月, 2012 1 次提交
  3. 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
  4. 18 6月, 2012 1 次提交
  5. 22 2月, 2012 3 次提交
  6. 04 2月, 2012 1 次提交
    • A
      qdev: register all types natively through QEMU Object Model · 39bffca2
      Anthony Liguori 提交于
      This was done in a mostly automated fashion.  I did it in three steps and then
      rebased it into a single step which avoids repeatedly touching every file in
      the tree.
      
      The first step was a sed-based addition of the parent type to the subclass
      registration functions.
      
      The second step was another sed-based removal of subclass registration functions
      while also adding virtual functions from the base class into a class_init
      function as appropriate.
      
      Finally, a python script was used to convert the DeviceInfo structures and
      qdev_register_subclass functions to TypeInfo structures, class_init functions,
      and type_register_static calls.
      
      We are almost fully converted to QOM after this commit.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      39bffca2
  7. 28 1月, 2012 1 次提交
  8. 22 11月, 2011 1 次提交
  9. 18 11月, 2011 1 次提交
  10. 29 10月, 2011 12 次提交
  11. 12 9月, 2011 2 次提交
  12. 12 8月, 2011 11 次提交
  13. 19 7月, 2011 1 次提交
  14. 26 5月, 2011 2 次提交