1. 02 7月, 2010 1 次提交
    • M
      qdev: Decouple qdev_prop_drive from DriveInfo · f8b6cc00
      Markus Armbruster 提交于
      Make the property point to BlockDriverState, cutting out the DriveInfo
      middleman.  This prepares the ground for block devices that don't have
      a DriveInfo.
      
      Currently all user-defined ones have a DriveInfo, because the only way
      to define one is -drive & friends (they go through drive_init()).
      DriveInfo is closely tied to -drive, and like -drive, it mixes
      information about host and guest part of the block device.  I'm
      working towards a new way to define block devices, with clean
      host/guest separation, and I need to get DriveInfo out of the way for
      that.
      
      Fortunately, the device models are perfectly happy with
      BlockDriverState, except for two places: ide_drive_initfn() and
      scsi_disk_initfn() need to check the DriveInfo for a serial number set
      with legacy -drive serial=...  Use drive_get_by_blockdev() there.
      
      Device model code should now use DriveInfo only when explicitly
      dealing with drives defined the old way, i.e. without -device.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      f8b6cc00
  2. 04 6月, 2010 4 次提交
  3. 15 5月, 2010 1 次提交
    • J
      vmstate: Add support for alias ID · 4d2ffa08
      Jan Kiszka 提交于
      Some legacy users (mostly PC devices) of vmstate_register manage
      instance IDs on their own, and that unfortunately in a way that is
      incompatible with automatically generated ones. This so far prevents
      switching those users to vmstates that are registered by qdev.
      
      To establish a migration path, this patch introduces the concept of
      alias IDs. They can be passed to an extended vmstate registration
      service, and qdev provides a set service to be used during device init.
      find_se will consider the alias in addition to the default ID. We can
      then start generating the default ID automatically and writing it on
      vmsave, thus converting that format without breaking support for upward
      migration.
      
      The user is required specify the highest vmstate version for which the
      alias is required. Once this version falls behind the minimum required
      for a specific vmstate, an assertion triggers to motivate cleaning up
      the obsolete alias.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      4d2ffa08
  4. 23 4月, 2010 1 次提交
  5. 19 4月, 2010 1 次提交
  6. 17 3月, 2010 1 次提交
  7. 09 3月, 2010 1 次提交
  8. 04 2月, 2010 1 次提交
  9. 12 1月, 2010 1 次提交
  10. 12 12月, 2009 1 次提交
  11. 03 12月, 2009 1 次提交
  12. 30 10月, 2009 1 次提交
    • G
      usb core: use qdev for -usbdevice · 0958b4cc
      Gerd Hoffmann 提交于
      This patchs adds infrastructure to handle -usbdevice via qdev callbacks.
      USBDeviceInfo gets a name field (for the -usbdevice driver name) and a
      callback for -usbdevice parameter parsing.
      
      The new usbdevice_create() function walks the qdev driver list and looks
      for a usb driver with a matching name.  When a parameter parsing
      callback is present it is called, otherwise the device is created via
      usb_create_simple().
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0958b4cc
  13. 28 10月, 2009 5 次提交
  14. 22 10月, 2009 1 次提交
  15. 19 10月, 2009 1 次提交
  16. 07 10月, 2009 2 次提交
  17. 05 10月, 2009 7 次提交
  18. 25 9月, 2009 1 次提交
  19. 12 9月, 2009 1 次提交
    • B
      Fix sys-queue.h conflict for good · 72cf2d4f
      Blue Swirl 提交于
      Problem: Our file sys-queue.h is a copy of the BSD file, but there are
      some additions and it's not entirely compatible. Because of that, there have
      been conflicts with system headers on BSD systems. Some hacks have been
      introduced in the commits 15cc9235,
      f40d7537,
      96555a96 and
      3990d09a but the fixes were fragile.
      
      Solution: Avoid the conflict entirely by renaming the functions and the
      file. Revert the previous hacks.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      72cf2d4f
  20. 10 9月, 2009 4 次提交
  21. 28 8月, 2009 2 次提交
  22. 11 8月, 2009 1 次提交