qemu-irix/include
Markus Armbruster 70b9433109 QemuOpts: Wean off qerror_report_err()
qerror_report_err() is a transitional interface to help with
converting existing monitor commands to QMP.  It should not be used
elsewhere.

The only remaining user in qemu-option.c is qemu_opts_parse().  Is it
used in QMP context?  If not, we can simply replace
qerror_report_err() by error_report_err().

The uses in qemu-img.c, qemu-io.c, qemu-nbd.c and under tests/ are
clearly not in QMP context.

The uses in vl.c aren't either, because the only QMP command handlers
there are qmp_query_status() and qmp_query_machines(), and they don't
call it.

Remaining uses:

* drive_def(): Command line -drive and such, HMP drive_add and pci_add

* hmp_chardev_add(): HMP chardev-add

* monitor_parse_command(): HMP core

* tmp_config_parse(): Command line -tpmdev

* net_host_device_add(): HMP host_net_add

* net_client_parse(): Command line -net and -netdev

* qemu_global_option(): Command line -global

* vnc_parse_func(): Command line -display, -vnc, default display, HMP
  change, QMP change.  Bummer.

* qemu_pci_hot_add_nic(): HMP pci_add

* usb_net_init(): Command line -usbdevice, HMP usb_add

Propagate errors through qemu_opts_parse().  Create a convenience
function qemu_opts_parse_noisily() that passes errors to
error_report_err().  Switch all non-QMP users outside tests to it.

That leaves vnc_parse_func().  Propagate errors through it.  Since I'm
touching it anyway, rename it to vnc_parse().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
2015-06-22 18:20:39 +02:00
..
block Block layer core and image format patches 2015-06-15 10:43:06 +01:00
disas disas: Remove uses of CPU env 2015-06-22 17:40:01 +02:00
exec semihosting: add --semihosting-config arg sub-argument 2015-06-19 14:17:45 +01:00
fpu
hw QOM infrastructure fixes and device conversions 2015-06-22 12:50:30 +01:00
libdecnumber
migration Add a protective section footer 2015-06-12 06:54:01 +02:00
monitor qdev-monitor: Propagate errors through qdev_device_add() 2015-06-22 18:20:39 +02:00
net vhost: enable vhost without without MSI-X 2015-06-19 12:17:49 +02:00
qapi qdev-monitor: Convert qbus_find() to Error 2015-06-22 18:20:39 +02:00
qemu QemuOpts: Wean off qerror_report_err() 2015-06-22 18:20:39 +02:00
qom qom: Don't pass string table to object_get_enum() function 2015-06-19 18:42:48 +02:00
standard-headers
sysemu semihosting: create SemihostingConfig structure and semihost.h 2015-06-19 14:17:45 +01:00
ui QemuOpts: Wean off qerror_report_err() 2015-06-22 18:20:39 +02:00
config.h
elf.h
glib-compat.h
qemu-common.h
qemu-io.h
qjson.h
trace-tcg.h
trace.h