xemu/include/qemu
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
..
acl.h
aes.h include/qemu/aes.h: Avoid conflicts with FreeBSD AES functions 2014-06-19 16:13:38 +01:00
atomic.h atomics: add explicit compiler fence in __atomic memory barriers 2015-06-05 19:45:13 +02:00
bitmap.h bitmap: add atomic test and clear 2015-06-05 17:10:00 +02:00
bitops.h bitmap: add atomic set functions 2015-06-05 17:10:00 +02:00
bswap.h cpu_ldst.h, cpu-all.h, bswap.h: Update documentation on ld/st accessors 2015-01-20 15:19:35 +00:00
compatfd.h util: Remove unused functions 2015-04-30 16:05:48 +03:00
compiler.h qom: Add object_new_with_props() / object_new_withpropv() helpers 2015-06-19 18:42:18 +02:00
config-file.h qemu-option: introduce qemu_find_opts_singleton 2014-04-27 13:04:18 +04:00
crc32c.h include/qemu/crc32c.h: Rename include guards to match filename 2014-02-26 17:20:07 +00:00
envlist.h
error-report.h qemu-error: Add error_vreport() 2014-10-09 15:36:15 +02:00
event_notifier.h
fifo8.h util/fifo8: implement push/pop of multiple bytes 2014-02-08 14:50:48 +00:00
hbitmap.h block: Resize bitmaps on bdrv_truncate 2015-04-28 15:36:10 +02:00
host-utils.h target-ppc: Add ISA2.06 divde[o] Instructions 2014-03-05 03:06:39 +01:00
int128.h int128: Add int128_exts64() 2014-05-30 13:00:28 -06:00
iov.h
log.h disas: Remove uses of CPU env 2015-06-22 17:40:01 +02:00
main-loop.h iohandler: Change return type of qemu_set_fd_handler to "void" 2015-06-12 13:26:21 +01:00
module.h module: implement module loading 2014-02-20 13:14:18 +01:00
notify.h
option_int.h QemuOpts: change opt->name|str from (const char *) to (char *) 2014-06-16 17:23:20 +08:00
option.h QemuOpts: Wean off qerror_report_err() 2015-06-22 18:20:39 +02:00
osdep.h util: move read_password method out of qemu-img into osdep/oslib 2015-05-22 17:08:01 +02:00
queue.h queue.h: Add QLIST_FIX_HEAD_PTR() 2015-06-12 17:04:59 +02:00
range.h Introduce signed range. 2014-06-19 18:44:19 +03:00
ratelimit.h
rcu_queue.h rcu: introduce RCU-enabled QLIST 2015-02-16 17:30:19 +01:00
rcu.h rcu: do not create thread in pthread_atfork callback 2015-04-01 10:06:38 +02:00
readline.h
rfifolock.h rfifolock: add recursive FIFO lock 2014-03-13 14:42:21 +01:00
seqlock.h
sockets.h socket shutdown 2015-01-16 13:06:17 +05:30
thread-posix.h
thread-win32.h
thread.h rcu: add rcu library 2015-02-02 16:55:10 +01:00
throttle.h throttle: Update throttle infrastructure copyright 2015-06-12 14:00:00 +01:00
timer.h qemu-timer: Call clock reset notifiers on forward jumps 2015-06-19 12:27:14 +02:00
tls.h
typedefs.h Move loadvm_handlers into MigrationIncomingState 2015-06-12 06:54:01 +02:00
uri.h
xattr.h