diff options
| author | Marc-André Lureau | 2019-02-20 16:42:52 +0100 |
|---|---|---|
| committer | Michael Roth | 2019-03-18 16:48:06 +0100 |
| commit | 781f2b3d1e5ef389b44016a897fd55e7a780bf35 (patch) | |
| tree | 3ebb46ee0a3fe9bef143492e3c45b26d4c1d25c3 /tests | |
| parent | qga: Fix guest-get-fsinfo PCI address collection in Windows (diff) | |
| download | qemu-781f2b3d1e5ef389b44016a897fd55e7a780bf35.tar.gz qemu-781f2b3d1e5ef389b44016a897fd55e7a780bf35.tar.xz qemu-781f2b3d1e5ef389b44016a897fd55e7a780bf35.zip | |
qga: process_event() simplification
Simplify the code around qmp_dispatch():
- rely on qmp_dispatch/check_obj() for message checking
- have a single send_response() point
- constify send_response() argument
It changes a couple of error messages:
* When @req isn't a dictionary, from
Invalid JSON syntax
to
QMP input must be a JSON object
* When @req lacks member "execute", from
this feature or command is not currently supported
to
QMP input lacks member 'execute'
CC: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
