1. 28 10月, 2009 1 次提交
  2. 11 9月, 2009 1 次提交
  3. 28 8月, 2009 2 次提交
    • 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
    • M
      qdev: convert watchdogs · 09aaa160
      Markus Armbruster 提交于
      -watchdog NAME is now equivalent to -device NAME, except it treats
      option argument '?' specially, and supports only one watchdog.
      
      A side effect is that a device created with -watchdog may now receive
      a different PCI address.
      
      i6300esb is now available on any machine with a PCI bus, not just PCs.
      ib700 is still PC only, but that could be changed easily.
      
      The only remaining use of struct WatchdogTimerModel and
      watchdog_add_model() is supporting '-watchdog ?'.  Should be replaced
      by searching device_info_list for watchdog devices when we can
      identify them there.
      
      Also fixes ib700 not to use vm_clock before it is initialized: in
      wdt_ib700_init(), called from register_watchdogs(), which runs before
      init_timers().  The bug made ib700_write_enable_reg() crash in
      qemu_del_timer().
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      09aaa160
  4. 17 7月, 2009 1 次提交
  5. 01 5月, 2009 1 次提交