• Hook i44fx pcihost into sysbus.
    Convert Host bridge and ISA bridge pci devices to qdev.
    Tag as no-user.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • 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: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • 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: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • Put the new property into use.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • So we can parse "$slot.$fn" strings into devfn numbers.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Dir »
  • The pc-0.11 type allows users of qemu-0.11 to use a machine type which
    they know will remain compatible when the upgrade to qemu-0.12.
    
    Management tools may choose to canonicalize the 'pc' machine type to
    'pc-0.11' so that if the 'pc' alias changes target in future versions
    of qemu, the machine type used will remain compatible.
    
    Signed-off-by: Mark McLoughlin <markmc@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Mark McLoughlin authored
     
    Browse Code »
  • Add an 'alias' field to QEMUMachine and display it in the output of
    'qemu -M ?' with an '(aliased to foo)' suffix.
    
    Aliases can change targets in newer versions of qemu, so management tools
    may choose canonicalize machine types to ensure that if a user chooses an
    alias, that the actual machine type used will remain compatible in
    future.
    
    This is intended to mimic a symlink to a machine description file.
    
    Signed-off-by: Mark McLoughlin <markmc@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Mark McLoughlin authored
     
    Browse Code »