1. 07 10月, 2009 1 次提交
    • M
      New qdev_init_nofail() · e23a1b33
      Markus Armbruster 提交于
      Like qdev_init(), but terminate program via hw_error() instead of
      returning an error value.
      
      Use it instead of qdev_init() where terminating the program on failure
      is okay, either because it's during machine construction, or because
      we know that failure can't happen.
      
      Because relying in the latter is somewhat unclean, and the former is
      not always obvious, it would be nice to go back to qdev_init() in the
      not-so-obvious cases, only with proper error handling.  I'm leaving
      that for another day, because it involves making sure that error
      values are properly checked by all callers.
      
      Patchworks-ID: 35168
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      e23a1b33
  2. 05 10月, 2009 1 次提交
  3. 02 10月, 2009 2 次提交
  4. 20 9月, 2009 1 次提交
    • B
      Compile loader only once · ca20cf32
      Blue Swirl 提交于
      Callers must pass ELF machine, byte swapping and symbol LSB clearing
      information to ELF loader. A.out loader needs page size information, pass
      that too as a parameter.
      
      Extract prototypes to a separate file. Move loader.[ch] and elf_ops.h under hw.
      
      Adjust callers. Also use target_phys_addr_t instead of target_ulong for
      addresses: loader addresses aren't virtual.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      ca20cf32
  5. 28 8月, 2009 1 次提交
    • G
      qdev: add return value to init() callbacks. · 81a322d4
      Gerd Hoffmann 提交于
      Sorry folks, but it has to be.  One more of these invasive qdev patches.
      
      We have a serious design bug in the qdev interface:  device init
      callbacks can't signal failure because the init() callback has no
      return value.  This patch fixes it.
      
      We have already one case in-tree where this is needed:
      Try -device virtio-blk-pci (without drive= specified) and watch qemu
      segfault.  This patch fixes it.
      
      With usb+scsi being converted to qdev we'll get more devices where the
      init callback can fail for various reasons.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      81a322d4
  6. 26 8月, 2009 1 次提交
    • B
      Sparc32: improve interrupt handling · 462eda24
      Blue Swirl 提交于
      Level 15 interrupts are broadcast to all CPUs, each CPU can clear the
      interrupt using the local Clear Pending register.
      
      Update intbit_to_level table.
      
      Don't try to raise level 0 interrupts.
      
      Calculate pending interrupts based on the separate inputs from master
      register. Setting or resetting the pending level isn't correct because of
      overlap of levels.
      
      Level 14 is always used for CPU timer interrupts, remove the property.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      462eda24
  7. 23 8月, 2009 1 次提交
  8. 11 8月, 2009 1 次提交
  9. 09 8月, 2009 7 次提交
  10. 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
  11. 22 7月, 2009 2 次提交
  12. 21 7月, 2009 2 次提交
  13. 17 7月, 2009 2 次提交
    • B
      Fix sparc-softmmu breakage by ee6847d1 · f6e097e7
      Blue Swirl 提交于
      Move the qdev_init(dev); call after the setting of d->size.
      Thanks to Filip Navara.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      f6e097e7
    • G
      qdev: rework device properties. · ee6847d1
      Gerd Hoffmann 提交于
      This patch is a major overhaul of the device properties.  The properties
      are saved directly in the device state struct now, the linked list of
      property values is gone.
      
      Advantages:
        * We don't have to maintain the list with the property values.
        * The value in the property list and the value actually used by
          the device can't go out of sync any more (used to happen for
          the pci.devfn == -1 case) because there is only one place where
          the value is stored.
        * A record describing the property is required now, you can't set
          random properties any more.
      
      There are bus-specific and device-specific properties.  The former
      should be used for properties common to all bus drivers.  Typical
      use case is bus addressing, i.e. pci.devfn and i2c.address.
      
      Properties have a PropertyInfo struct attached with name, size and
      function pointers to parse and print properties.  A few common property
      types have PropertyInfos defined in qdev-properties.c.  Drivers are free
      to implement their own very special property parsers if needed.
      
      Properties can have default values.  If unset they are zero-filled.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ee6847d1
  14. 16 7月, 2009 6 次提交
  15. 14 7月, 2009 2 次提交
  16. 30 6月, 2009 1 次提交
  17. 30 5月, 2009 1 次提交
  18. 26 5月, 2009 1 次提交
  19. 22 5月, 2009 3 次提交
    • J
      Introduce reset notifier order · 8217606e
      Jan Kiszka 提交于
      Add the parameter 'order' to qemu_register_reset and sort callbacks on
      registration. On system reset, callbacks with lower order will be
      invoked before those with higher order. Update all existing users to the
      standard order 0.
      
      Note: At least for x86, the existing users seem to assume that handlers
      are called in their registration order. Therefore, the patch preserves
      this property. If someone feels bored, (s)he could try to identify this
      dependency and express it properly on callback registration.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8217606e
    • A
      Introduce is_default field for QEMUMachine · 0c257437
      Anthony Liguori 提交于
      f80f9ec9 changed the order that machines are registered which had the effect of
      changing the default machine.  This changeset introduces a new is_default field
      so that machine types can declare that they are the default for an architecture.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0c257437
    • A
      Refactor how display drivers are selected · 993fbfdb
      Anthony Liguori 提交于
      My previous commit, f92f8afe,  broke -vnc (spotted by Glauber Costa).  This
      is because it's necessary to tell when the no special display parameters have
      been passed and default to SDL or VNC appropriately.
      
      This refactors the display selection logic to be less complicated which has
      the effect of fixing the regression mentioned above.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      993fbfdb
  20. 21 5月, 2009 1 次提交
  21. 15 5月, 2009 2 次提交