1. 05 10月, 2009 5 次提交
  2. 26 9月, 2009 1 次提交
    • M
      Fix coding style issue · 3df04ac3
      Mark McLoughlin 提交于
      Replace:
      
        if (-1 == foo())
      
      with:
      
        if (foo() == -1)
      
      While this coding style is not in direct contravention of our currently
      ratified CODING_STYLE treaty, it could be argued that the Article 3 of
      the European Convention on Human Rights (prohibiting torture and "inhuman
      or degrading treatment") reads on the matter.
      
      [This commit message was brought to you without humour, as is evidenced
      by the absence of any emoticons]
      Signed-off-by: NMark McLoughlin <markmc@redhat.com>
      Cc: Avi Kivity <avi@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      3df04ac3
  3. 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
  4. 10 9月, 2009 4 次提交
  5. 28 8月, 2009 2 次提交
  6. 11 8月, 2009 4 次提交
  7. 30 7月, 2009 2 次提交
  8. 28 7月, 2009 1 次提交
    • G
      kill drives_table · 751c6a17
      Gerd Hoffmann 提交于
      First step cleaning up the drives handling.  This one does nothing but
      removing drives_table[], still it became seriously big.
      
      drive_get_index() is gone and is replaced by drives_get() which hands
      out DriveInfo pointers instead of a table index.  This needs adaption in
      *tons* of places all over.
      
      The drives are now maintained as linked list.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      751c6a17
  9. 27 7月, 2009 2 次提交
    • G
      qdev: bus walker + qdev_device_add() · 8ffb1bcf
      Gerd Hoffmann 提交于
      This patch implements a parser and qdev tree walker for bus paths and
      adds qdev_device_add on top of this.
      
      A bus path can be:
        (1) full path, i.e. /i440FX-pcihost/pci.0/lsi/scsi.0
        (2) bus name, i.e. "scsi.0".  Best used together with id= to make
            sure this is unique.
        (3) relative path starting with a bus name, i.e. "pci.0/lsi/scsi.0"
      
      For the (common) case of a single child bus being attached to a device
      it is enougth to specify the device only, i.e. "pci.0/lsi" will be
      accepted too.
      
      qdev_device_add() adds devices and accepts bus= parameters to find the
      bus the device should be attached to.  Without bus= being specified it
      takes the first bus it finds where the device can be attached to (i.e.
      first pci bus for pci devices, ...).
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8ffb1bcf
    • G
      qdev: create default bus names. · d271de9f
      Gerd Hoffmann 提交于
      Create a default bus name if none is passed to qbus_create().
      
      If the parent device has DeviceState->id set it will be used to create
      the bus name,. i.e. -device lsi,id=foo will give you a scsi bus named
      "foo.0".
      
      If there is no id BusInfo->name (lowercased) will be used instead, i.e.
      -device lsi will give you a scsi bus named "scsi.0".
      
      A scsi adapter with two scsi busses would have "scsi.0" and "scsi.1" or
      "$id.0" and "$id.1" busses.  The numbers of the child busses are per
      device, i.e. when adding two lsi adapters both will have a "*.0" child
      bus.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      d271de9f
  10. 17 7月, 2009 7 次提交
  11. 10 7月, 2009 1 次提交
  12. 09 7月, 2009 2 次提交
    • G
      qdev: remove DeviceType · 042f84d0
      Gerd Hoffmann 提交于
      The only purpose DeviceType serves is creating a linked list of
      DeviceInfo structs.  This removes DeviceType and add a next field to
      DeviceInfo instead, so the DeviceInfo structs can be changed that way.
      Elimitates a pointless extra level of indirection.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      042f84d0
    • G
      qdev: replace bus_type enum with bus_info struct. · 10c4c98a
      Gerd Hoffmann 提交于
      BusInfo is filled with name and size (pretty much like I did for
      DeviceInfo as well).  There is also a function pointer to print
      bus-specific device information to the monitor.  sysbus is hooked
      up there, I've also added a print function for PCI.
      
      Device creation is slightly modified as well:  The device type search
      loop now also checks the bus type while scanning the list instead of
      complaining thereafter in case of a mismatch.  This effectively gives
      each bus a private namespace for device names.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NPaul Brook <paul@codesourcery.com>
      10c4c98a
  13. 11 6月, 2009 1 次提交
  14. 10 6月, 2009 1 次提交
  15. 09 6月, 2009 3 次提交
  16. 06 6月, 2009 1 次提交
  17. 05 6月, 2009 2 次提交