Luiz Capitulino 56f9107e43 qdev: qdev_unplug(): use error_set()
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: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
2012-04-09 14:35:25 -03:00
2012-03-14 22:20:27 +01:00
2012-04-09 14:35:25 -03:00
2012-04-02 15:04:15 -05:00
2012-04-06 19:25:57 +03:00
2012-03-27 09:15:52 -03:00
2012-04-02 15:04:15 -05:00
2012-04-06 19:25:57 +03:00
2012-04-07 08:25:21 +00:00
2012-04-07 14:00:45 +00:00
2012-01-13 10:55:56 -06:00
2012-03-14 22:20:25 +01:00
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
2012-01-18 10:23:39 -02:00
2012-01-13 10:37:00 +00:00
2012-02-09 16:17:51 +01:00
2012-03-12 10:30:23 +00:00
2012-03-03 18:10:16 +00:00
2012-03-14 22:20:27 +01:00
2012-03-30 08:14:11 -05:00
2012-03-30 08:14:11 -05:00
2012-03-30 08:14:11 -05:00
2012-01-10 09:36:43 +01:00
2012-03-07 13:03:51 +00:00
2012-04-01 20:30:23 +02:00
2012-04-06 19:25:57 +03:00
2012-03-14 22:20:27 +01:00
2012-04-07 13:46:35 +00:00
2012-03-14 22:20:27 +01:00
2012-03-15 10:39:52 -03:00
2012-03-15 10:39:52 -03:00
2012-03-14 22:20:27 +01:00
2012-03-14 22:20:27 +01:00
2012-03-15 10:39:52 -03:00
2012-03-15 10:39:52 -03:00
2012-03-15 10:39:52 -03:00
2012-03-19 15:17:21 +02:00
2012-01-13 10:55:56 -06:00
2012-03-14 22:20:27 +01:00
2012-03-14 22:20:27 +01:00
2011-12-09 11:25:22 +00:00
2012-03-14 22:20:26 +01:00
2012-03-05 17:40:12 +02:00
2012-03-15 10:39:52 -03:00
2012-03-15 10:39:52 -03:00
2012-03-15 10:39:52 -03:00
2012-02-15 09:39:21 -06:00
2012-03-27 09:15:28 -03:00
2012-02-24 13:36:04 -06:00
2011-12-22 11:53:59 +01:00
2011-12-22 11:53:59 +01:00
2012-02-04 11:49:34 +00:00
2012-02-01 16:24:40 -06:00
2012-02-17 08:33:32 -06:00
2012-02-17 08:33:32 -06:00
2011-12-22 11:53:58 +01:00
2012-01-13 10:55:56 -06:00
2012-03-14 22:20:27 +01:00
2012-01-10 18:23:58 +01:00
2012-04-07 14:00:45 +00:00
2012-01-10 18:23:58 +01:00
2012-02-03 10:41:08 -06:00
2012-03-02 11:56:38 +00:00
2012-03-12 15:09:23 -05:00
2012-02-17 12:41:59 +01:00
2012-04-07 14:00:45 +00:00
2011-12-15 09:20:50 -06:00
2012-03-30 08:14:11 -05:00
2012-03-30 08:14:11 -05:00
2011-12-06 10:07:04 +00:00
2012-04-02 09:43:16 -05:00
2012-03-30 08:14:11 -05:00
2011-12-11 17:50:43 -06:00
2012-03-30 08:14:11 -05:00
2012-03-14 22:20:27 +01:00
2012-03-15 10:39:52 -03:00
2012-03-14 22:20:27 +01:00
2012-03-14 22:20:26 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%