1. 18 6月, 2012 4 次提交
  2. 12 5月, 2012 1 次提交
  3. 24 4月, 2012 1 次提交
  4. 10 4月, 2012 1 次提交
    • L
      qdev: qdev_unplug(): use error_set() · 56f9107e
      Luiz Capitulino 提交于
      It currently uses qerror_report(), but next commit will convert
      the drive_del command to the QAPI and this requires using
      error_set().
      
      One particularity of qerror_report() is that it knows when it's
      running on monitor context or command-line context and prints the
      error message accordingly. error_set() doesn't do this, so we
      have to be careful not to drop error messages.
      
      qdev_unplug() has three kinds of usages:
      
       1. It's called when hot adding a device fails, to undo anything
          that has been done before hitting the error
      
       2. It's called by function monitor functions like device_del(),
          to unplug a device
      
       3. It's used by xen_platform.c in a way that doesn't _seem_ to
          be in monitor context
      
      Only item 2 can print an error message to the user, this commit
      maintains that.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      56f9107e
  5. 03 4月, 2012 2 次提交
  6. 17 2月, 2012 1 次提交
    • A
      qdev: Fix qdev_try_create() semantics · 4ed658ca
      Andreas Färber 提交于
      Since QOM'ification, qdev_try_create() uses object_new() internally,
      which asserts "type != NULL" when the type is not registered.
      This was revealed by the combination of kvmclock's kvm_enabled() check
      and early QOM type registration.
      
      Check whether the class exists before calling object_new(), so that
      the caller (e.g., qdev_create) can fail gracefully, telling us which
      device could not be created.
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Cc: Anthony Liguori <aliguori@codemonkey.ws>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4ed658ca
  7. 15 2月, 2012 1 次提交
  8. 07 2月, 2012 4 次提交
  9. 04 2月, 2012 13 次提交
  10. 28 1月, 2012 7 次提交
  11. 22 1月, 2012 1 次提交
  12. 14 1月, 2012 1 次提交
  13. 20 12月, 2011 3 次提交