qemu-e2k/include/sysemu
Markus Armbruster 04e00c92ef monitor: Use trad. command interface for HMP pcie_aer_inject_error
All QMP commands use the "new" handler interface (mhandler.cmd_new).
Most HMP commands still use the traditional interface (mhandler.cmd),
but a few use the "new" one.  Complicates handle_user_command() for no
gain, so I'm converting these to the traditional interface.

pcie_aer_inject_error's implementation is split into the
hmp_pcie_aer_inject_error() and pcie_aer_inject_error_print().  The
former is a peculiar crossbreed between HMP and QMP handler.  On
success, it works like a QMP handler: store QDict through ret_data
parameter, return 0.  Printing the QDict is left to
pcie_aer_inject_error_print().  On failure, it works more like an HMP
handler: print error to monitor, return negative number.

To convert to the traditional interface, turn
pcie_aer_inject_error_print() into a command handler wrapping around
hmp_pcie_aer_inject_error().  By convention, this command handler
should be called hmp_pcie_aer_inject_error(), so rename the existing
hmp_pcie_aer_inject_error() to do_pcie_aer_inject_error().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
2015-06-02 09:59:13 +02:00
..
accel.h accel: Pass MachineState object to accel init functions 2014-10-09 12:57:10 +02:00
arch_init.h accel: Remove tcg_available() function 2014-10-04 08:59:15 +02:00
balloon.h
block-backend.h block-backend: Expose bdrv_write_zeroes() 2015-04-28 15:36:08 +02:00
blockdev.h monitor: Use traditional command interface for HMP drive_del 2015-06-02 09:59:13 +02:00
bt.h
char.h
cpus.h
device_tree.h arm: Add PCIe host bridge in virt machine 2015-02-13 05:46:08 +00:00
dma.h exec.c: Make address_space_rw take transaction attributes 2015-04-26 16:49:24 +01:00
dump-arch.h
dump.h
hostmem.h
iothread.h Remove various unused functions 2015-05-08 14:11:10 +03:00
kvm.h kvm: add support for memory transaction attributes 2015-04-30 16:55:32 +02:00
memory_mapping.h
numa.h numa: introduce machine callback for VCPU to node mapping 2015-03-19 16:12:09 -03:00
os-posix.h
os-win32.h os-win32: drop ffs(3) prototype 2015-04-28 15:36:08 +02:00
qtest.h
rng-random.h
rng.h
seccomp.h
sysemu.h monitor: Use trad. command interface for HMP pcie_aer_inject_error 2015-06-02 09:59:13 +02:00
tpm_backend_int.h Remove various unused functions 2015-05-08 14:11:10 +03:00
tpm_backend.h Extend TPM TIS interface to support TPM 2 2015-05-31 20:29:02 +02:00
tpm.h TPM2 ACPI table support 2015-06-01 14:18:54 +02:00
watchdog.h
xen-mapcache.h