Statistics
| Branch: | Revision:

root / monitor.c @ 96560cb3

History | View | Annotate | Download (113.9 kB)

# Date Author Comment
23842aab 01/12/2010 10:27 pm Blue Swirl

monitor: fix dead assignment spotted by clang

Value stored to 'nb_per_line' is never read.

Signed-off-by: Blue Swirl <>

3d72f9a2 01/12/2010 09:24 pm Luiz Capitulino

QMP: Don't free async event's 'data'

The monitor_protocol_event() function will free the
event's data, this is wrong as 'data' management is up
to the caller.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

810f49b5 01/08/2010 05:58 pm Luiz Capitulino

QMP: Drop wrong assert()

Some commands return a QList of QDicts, which is valid,
but will trig the assert().

Just drop it.

Reported-by: Nathan Baum <>
Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

b6e098d7 12/19/2009 04:26 pm Luiz Capitulino

monitor: Introduce 'M' argument type

This is a target long value in megabytes which should be
converted to bytes.

It will be used by handlers which accept a megabyte value
when in "user mode".

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

3b0bd6ec 12/19/2009 04:26 pm Luiz Capitulino

monitor: do_balloon(): Use 'M' argument type

This makes do_balloon() accept megabyte values from the user
Monitor while accepting byte values for QMP.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

0abc6579 12/19/2009 04:26 pm Luiz Capitulino

QMP: Return an empty dict by default

Currently, when a regular command doesn't have any data to output,
QMP will emit:

{ "return": "OK" }

Returning an empty dict is better though, because dicts can support
some protocol changes in a compatible way.

So, with this commit we will return:...

3661d51e 12/19/2009 04:26 pm Luiz Capitulino

QMP: Assure that returned data is a QDict

This is for debug purposes only.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

43e713ce 12/19/2009 04:26 pm Luiz Capitulino

QMP: Only handle converted commands

Looks like I dropped this check when addressing the 'query-'
commands request.

QMP should only handle converted commands, obviously.

Reported-by: Markus Armbruster <>

Signed-off-by: Luiz Capitulino <>...

c62313bb 12/18/2009 07:26 pm Jan Kiszka

monitor: Accept input only byte-wise

This allows to suspend command interpretation and execution
synchronously, e.g. during migration.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

78d714e0 12/18/2009 07:26 pm Luiz Capitulino

monitor: Use 'device' in eject

Monitor's eject command uses 'filename' for the device name
argument, but 'device' is a better name.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

cfdf2c40 12/18/2009 07:26 pm Luiz Capitulino

monitor: do_balloon(): Check for errors

do_balloon() should check for ballooning availability as
do_info_balloon() does.

Noted by Daniel P. Berrange <>.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

183e6e52 12/18/2009 07:26 pm Luiz Capitulino

monitor: Avoid readline functions in QMP

The monitor_read_command() function is readline specific
and should only be used when readline is available.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

2daa1191 12/18/2009 07:26 pm Luiz Capitulino

monitor: Catch printing to non-existent monitor

The monitor_vprintf() function now touches the 'mon' pointer
before calling monitor_puts(), this causes block migration
to segfault as its functions call monitor_printf() with a
NULL 'mon'.

To fix the problem this commit moves the 'mon' NULL check...

e78c48ec 12/12/2009 03:59 pm Luiz Capitulino

monitor: Convert do_info_mice() to QObject

Each mouse is represented by a QDict, the returned QObject is a QList of
all mice.

This commit should not change user output.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

c86a6683 12/12/2009 03:59 pm Luiz Capitulino

migration: Convert do_info_migrate() to QObject

Return a QDict, which may contain up to more two QDicts, depending
on the type of migration we're performing.

IMPORTANT: as a QInt stores a int64_t integer, RAM values are going
to be stored as int64_t and not as uint64_t as they are today. If...

d15e5465 12/12/2009 03:59 pm Luiz Capitulino

block: Convert bdrv_info() to QObject

Each block device information is stored in a QDict and the
returned QObject is a QList of all devices.

This commit should not change user output.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

218a536a 12/12/2009 03:59 pm Luiz Capitulino

block: Convert bdrv_info_stats() to QObject

Each device statistic information is stored in a QDict and
the returned QObject is a QList of all devices.

This commit should not change user output.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

588b3832 12/12/2009 03:59 pm Luiz Capitulino

char: Convert qemu_chr_info() to QObject

Each device is represented by a QDict. The returned QObject is a QList
of all devices.

This commit should not change user output.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

d96fd29c 12/12/2009 03:59 pm Luiz Capitulino

VNC: Convert do_info_vnc() to QObject

Return a QDict with server information. Connected clients are returned
as a QList of QDicts.

The new functions (vnc_qdict_remote_addr(), vnc_qdict_local_addr() and
put_addr_qdict()) are used to insert 'host' and 'service' information...

45e914cf 12/12/2009 03:59 pm Luiz Capitulino

monitor: do_info_version(): Use QDict

All 'info' commands should use QDict, this commit also kills
monitor_print_qobject() as do_info_version() doesn't use it
anymore (and no handler will).

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

c0e8520e 12/12/2009 03:59 pm Luiz Capitulino

monitor: Convert do_info_status() to QObject

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

2af5ba71 12/12/2009 03:59 pm Luiz Capitulino

monitor: Convert do_info_kvm() to QObject

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

e05486cb 12/12/2009 03:59 pm Luiz Capitulino

monitor: Convert do_info_name() to QObject

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

14f0720d 12/12/2009 03:59 pm Luiz Capitulino

monitor: Convert do_info_hpet() to QObject

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

9603ceba 12/12/2009 03:59 pm Luiz Capitulino

monitor: Convert do_info_uuid() to QObject

snprintf() is used because the UUID_FMT is too complex for
qobject_from_jsonf().

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

7f179671 12/12/2009 03:59 pm Luiz Capitulino

monitor: Fix do_info_balloon() output

Monitor commands should always return values in bytes and info
commands should always return a QDict.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

1a728677 12/12/2009 03:59 pm Luiz Capitulino

monitor: Fix do_info_commands() output

Should return a QDict and should not print the user protocol bits
(eg. "c|cont").

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

55483ad6 12/12/2009 03:59 pm Luiz Capitulino

monitor: do_info_cpus(): Use QBool

While there update the documentation as well.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

4e307fc8 12/12/2009 03:59 pm Gerd Hoffmann

Revert "monitor: Command-line flag to enable control mode"

This reverts commit adcb181afe5a951c521411c7a8e9d9b791aa6742.

Conflicts:

monitor.h

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

7cdfcfe1 12/08/2009 12:34 am Markus Armbruster

monitor: convert do_getfd() to QError

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

77e595e7 12/08/2009 12:34 am Markus Armbruster

QMP: add human-readable description to error response

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

ec3b82af 12/08/2009 12:34 am Markus Armbruster

monitor: convert do_change() to QObject, QError

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

063c1a09 12/08/2009 12:34 am Markus Armbruster

monitor: convert do_closefd() to QError

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

2c2a6bb8 12/08/2009 12:34 am Markus Armbruster

monitor: convert do_eject() to QError

Also affects do_change(), because the two share eject_device().

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

94171e11 12/08/2009 12:34 am Luiz Capitulino

monitor: do_cont(): Don't ask for passwords

The do_cont() function will ask the user to enter a password if a
device is encrypted.

This is invalid under QMP, so we raise a QERR_DEVICE_ENCRYPTED
error.

Signed-off-by: Luiz Capitulino <>...

2895e075 12/08/2009 12:34 am Markus Armbruster

monitor: Fix double-prompt after "change vnc passwd BLA"

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

a3a55a2e 12/07/2009 10:04 pm Luiz Capitulino

monitor: Introduce 'block_passwd' command

When using encrypted disk images, QEMU will prompt the user
for passwords when started.

This makes sense for the user protocol, but doesn't for QMP.

The solution is to have Monitor command which allows the user...

dd5121bd 12/04/2009 10:52 pm Blue Swirl

monitor: fix use of plain integer as NULL pointer, spotted by Sparse

Signed-off-by: Blue Swirl <>

d08d6f04 12/04/2009 08:06 pm Blue Swirl

monitor: use qemu_gettimeofday(), not gettimeofday()

Fix mingw32 build.

Signed-off-by: Blue Swirl <>

242cd003 12/04/2009 08:05 pm Blue Swirl

monitor: rename EVENT_* to QEVENT_* to avoid conflict on mingw32

Partially fixes mingw32 build.

Signed-off-by: Blue Swirl <>

68ac40d2 12/03/2009 05:41 pm Mark McLoughlin

net: move slirp code from net.c to net/slirp.c

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

b1a15e7e 12/03/2009 05:41 pm Luiz Capitulino

QMP: Introduce basic asynchronous events

Debug, shutdown, reset, powerdown and stop are all basic events,
as they are very simple they can be added in the same commit.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

4a29a85d 12/03/2009 05:41 pm Luiz Capitulino

QMP: Disable monitor print functions

We still have handlers which will call monitor print functions
in several places. Usually to report errors.

If they do this when we are in control mode, we will be emitting
garbage to our clients.

To avoid this problem, this commit adds a way to disable those...

25b422eb 12/03/2009 05:41 pm Luiz Capitulino

QMP: Output support

In the new Monitor output is always performed by only two
functions: do_info() and monitor_call_handler().

To support QMP output, we modify those functions to check if we
are in control mode. If so, we call monitor_protocol_emitter()...

956f1a0d 12/03/2009 05:41 pm Luiz Capitulino

QMP: do_info() checks

This commit adds specific QMP checks to do_info(), so that
it behaves as expected in QMP mode.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

5fa737a4 12/03/2009 05:41 pm Luiz Capitulino

QMP: Input support

The JSON stream parser is used to do QMP input. When there
are enough characters to be parsed it calls Monitor's
handle_qmp_command() function to handle the input.

This function's job is to check if the input is correct and
call the appropriate handler. In other words, it does for QMP...

5e23f480 12/03/2009 05:41 pm Luiz Capitulino

QMP: Allow 'query-' commands

The 'info' command makes sense for the user protocol, but for QMP
it doesn't, as its return data is not well defined. That is, it
can return anything.

To fix this Avi proposes having 'query-' commands when in protocol
mode. For example, 'info balloon' would become 'query-balloon'....

0d1ea871 12/03/2009 05:41 pm Luiz Capitulino

QMP: Asynchronous events infrastructure

Asynchronous events are generated with a call to
monitor_protocol_event().

This function builds the right data-type and emit the event
right away. The emitted data is always a JSON object and its
format is as follows:...

7fd669a1 12/03/2009 05:41 pm Luiz Capitulino

monitor: Introduce monitor_find_command()

This commit moves the loop which searches for the command
entry corresponding to a command name to its own function.

It will be used by QMP code as well.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

f3c157c4 12/03/2009 05:41 pm Luiz Capitulino

monitor: Rename monitor_handle_command()

As this series will add a new kind of Monitor command, it's better
to rename monitor_handle_command() to what it really is:
handle_user_command().

This will avoid confusion.

Signed-off-by: Luiz Capitulino <>...

e3bba9d0 12/03/2009 05:41 pm Luiz Capitulino

monitor: Introduce 'info commands'

List QMP available commands. Only valid in control mode, where
has to be used as 'query-commands.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

9b57c02e 12/03/2009 05:41 pm Luiz Capitulino

QMP: Initial support

This commit adds initial QMP support in QEMU. It's important
to notice that most QMP code will be part of the Monitor.

Input will be read by monitor_control_read(). Currently it
does nothing but next patches will add proper input support....

5d6c37fb 12/03/2009 05:41 pm Luiz Capitulino

monitor: do_info_balloon(): Use QError

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

418173c7 12/03/2009 05:41 pm Luiz Capitulino

monitor: Introduce MONITOR_USE_CONTROL flag

This flag will be set when Monitor enters "control mode", in
which the output will be defined by the QEMU Monitor Protocol.

This also introduces a macro to check if the flag is set.

Signed-off-by: Luiz Capitulino <>...

adcb181a 12/03/2009 05:41 pm Luiz Capitulino

monitor: Command-line flag to enable control mode

This commit adds a flag called 'control' to the '-monitor'
command-line option. This flag enables control mode.

The syntax is:

qemu [...] -monitor control,<device>

Where <device> is a chardev (excluding 'vc', for obvious reasons)....

99e2fc16 12/03/2009 05:41 pm Luiz Capitulino

monitor: Introduce monitor_call_handler()

This commit moves the code which calls Monitor handlers to
its own function, as it will be used by QMP code as well.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

8204a918 12/03/2009 05:41 pm Luiz Capitulino

monitor: QError support

This commit adds QError support in the Monitor.

A QError member is added to the Monitor struct. This new member
stores error information and is also used to check if an error
has occurred when the called handler returns.

Additionally, a new macro called qemu_error_new() is introduced....

fbc3d96c 11/17/2009 04:49 pm lirans@il.ibm.com

Enable migration without shared storage from the monitor

This patch adds the option to activate non-shared storage migration from the
monitor.
The migration command is as follows:
(qemu) migrate -d tcp:0:4444 # for ordinary live migration
(qemu) migrate -d -b tcp:0:4444 # for live migration with complete storage copy...

eb852011 11/09/2009 04:43 pm Markus Armbruster

Configurable block format whitelist

We have code for a quite a few block formats. While I trust that all
of these formats are useful at least for some people in some
circumstances, some of them are of a kind that friends don't let
friends use in production....

e1c923a6 10/27/2009 07:28 pm Luiz Capitulino

monitor: Convert do_eject() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

f0d6000a 10/27/2009 07:28 pm Luiz Capitulino

monitor: Convert do_getfd() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

18f3a515 10/27/2009 07:28 pm Luiz Capitulino

monitor: Convert do_closefd() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

57e09454 10/27/2009 07:28 pm Luiz Capitulino

monitor: Convert do_memory_save() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

18f5a8bf 10/27/2009 07:28 pm Luiz Capitulino

monitor: Convert do_physical_memory_save() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

b6b8df56 10/21/2009 09:35 pm Amit Shah

char: rename CHR_EVENT_RESET to CHR_EVENT_OPENED

The char event RESET is emitted when a char device is opened.
Give it a better name.

Patchworks-ID: 35287
Signed-off-by: Amit Shah <>
Signed-off-by: Anthony Liguori <>

b223f35f 10/09/2009 05:17 am Luiz Capitulino

monitor: Convert do_quit() do QObject

Patchworks-ID: 35345
Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

e0c97bde 10/09/2009 05:17 am Luiz Capitulino

monitor: Convert do_stop() to QObject

Patchworks-ID: 35343
Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

c80d259e 10/09/2009 05:17 am Luiz Capitulino

monitor: Convert do_system_reset() to QObject

Patchworks-ID: 35347
Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

43076664 10/09/2009 05:17 am Luiz Capitulino

monitor: Convert do_system_powerdown() to QObject

Patchworks-ID: 35346
Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

a1f896a0 10/09/2009 05:17 am Luiz Capitulino

monitor: Convert do_cont() to QObject

Appropriate error handling support will be needed to have
encrypted images working under the future machine protocol,
but this initial conversion will work with the current
user protocol.

Patchworks-ID: 35348
Signed-off-by: Luiz Capitulino <>...

83fb1de2 10/09/2009 05:17 am Luiz Capitulino

monitor: Convert do_balloon() to QObject

It is important to note that it never fails, as big refactoring
of the virtio code would be needed to get the proper error code.

Patchworks-ID: 35349
Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

ab2d3187 10/09/2009 05:17 am Luiz Capitulino

monitor: Convert do_info_version() to QObject

The returned data is always a QString.

Also introduces monitor_print_qobject(), which can be used as
a standard way to print QObjects in the user protocol format.

Patchworks-ID: 35350
Signed-off-by: Luiz Capitulino <>...

cc1d9c70 10/09/2009 05:17 am Luiz Capitulino

monitor: Convert do_info_balloon() to QObject

On success return a QInt with the balloon's value.

This also introduces monitor_print_balloon() to print the
balloon information in the user protocol.

Please, note that errors are not being converted yet.

Patchworks-ID: 35351...

8f3cec0b 10/09/2009 05:17 am Luiz Capitulino

monitor: Convert do_info_cpus() to QObject

Each CPU information is stored in a QDict and the returned
QObject is a QList of all CPUs.

The QDict contains the following information:

- "CPU": cpu index
- "current": "yes" or "no"
- "pc": current PC
- "halted": "yes" or "no"...

d7f9b689 10/09/2009 05:17 am Luiz Capitulino

monitor: Convert mon_cmd_t initializations to C99 style

Patchworks-ID: 35335
Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

910df89d 10/09/2009 05:17 am Luiz Capitulino

monitor: union for info handlers

This commit adds a union to mon_cmd_t for info handlers and
converts do_info() and info_cmds[] array to use it.

This improves type safety.

Next commit will convert command handlers.

Patchworks-ID: 35336
Signed-off-by: Luiz Capitulino <>...

af4ce882 10/09/2009 05:17 am Luiz Capitulino

monitor: union for command handlers

This commits adds a new union member to mon_cmd_t for command
handlers and convert monitor_handle_command() and qemu-monitor.hx
to use it.

This improves type safety.

Patchworks-ID: 35337
Signed-off-by: Luiz Capitulino <>...

a2876f59 10/09/2009 05:17 am Luiz Capitulino

monitor: Add user_print() to mon_cmd_t

This new struct member will store a pointer to a function that
should be used to output data in the user protocol format.

It will also serve as a flag to say if a given handler has already
been converted to the new QObject style....

13917bee 10/09/2009 05:17 am Luiz Capitulino

monitor: Handle new and old style handlers

This commit changes monitor_handle_command() to support old style
and new style handlers.

New style handlers are protocol independent, they return their
data to the Monitor, which in turn decides how to print them...

13c7425e 10/09/2009 05:17 am Luiz Capitulino

monitor: do_info(): handle new and old info handlers

do_info() is special, its job is to call 'info handlers'.
This is similar to what monitor_handle_command() does,
therefore do_info() also has to distinguish among new and
old style info handlers.

This commit converts do_info() to the new QObject style and...

45a50b16 10/06/2009 10:36 pm Gerd Hoffmann

Reorganize option rom (+linux kernel) loading.

This patch adds infrastructure to maintain memory regions which must be
restored on reset. That includes roms (vga bios and option roms on pc),
but is also used when loading linux kernels directly. Features:...

c227f099 10/02/2009 12:12 am Anthony Liguori

Revert "Get rid of _t suffix"

In the very least, a change like this requires discussion on the list.

The naming convention is goofy and it causes a massive merge problem. Something
like this must be presented on the list first so people can provide input...

99a0949b 10/01/2009 09:45 pm malc

Get rid of _t suffix

Some not so obvious bits, slirp and Xen were left alone for the time
being.

Signed-off-by: malc <>

e9a6625e 09/30/2009 03:11 pm Aurelien Jarno

Fix build with profiler enabled

Broken by 4a1418e07bdcfaa3177739e04707ecaec75d89e1

Signed-off-by: Aurelien Jarno <>

afcea8cb 09/20/2009 07:05 pm Blue Swirl

ioports: remove unused env parameter and compile only once

The CPU state parameter is not used, remove it and adjust callers. Now we
can compile ioport.c once for all targets.

Signed-off-by: Blue Swirl <>

72cf2d4f 09/12/2009 10:36 am Blue Swirl

Fix sys-queue.h conflict for good

Problem: Our file sys-queue.h is a copy of the BSD file, but there are
some additions and it's not entirely compatible. Because of that, there have
been conflicts with system headers on BSD systems. Some hacks have been
introduced in the commits 15cc9235840a22c289edbe064a9b3c19c5f49896,...

6ee093c9 09/11/2009 06:19 pm Juan Quintela

Unexport ticks_per_sec variable. Create get_ticks_per_sec() function

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

a7aec5da 09/11/2009 06:19 pm Gerd Hoffmann

monitor: fix muxing

make the mux driver send mux_in and mux_out events when switching
focus while hooking up more handlers.

stop using CharDriverState->focus in monitor.c, track state using
the mux events instead. This also removes the implicit assumtion...

675ebef9 09/04/2009 05:37 pm Luiz Capitulino

monitor: fail when 'i' type is greater than 32-bit

The 'i' argument type is for 32-bit only and most handlers
will use an 'int' to store its value.

It's better to fail gracefully when the user enters a value
greater than 32-bit than to get subtle casting bugs....

fb46660e 09/04/2009 05:37 pm Luiz Capitulino

monitor: Update supported types documentation

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

6d1cac3b 09/04/2009 05:37 pm Luiz Capitulino

monitor: Drop handler_8 and handler_9

Commit 79c4f6b08009a1d23177c2be8bd003253cf3686a added handler_8 and
handler_9 handling, but there isn't any command handler with those
number of arguments.

Just drop them.

Signed-off-by: Luiz Capitulino <>...

37b7ad48 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_10 to use QDict

This commit ports command handlers that receive ten arguments to use
the new monitor's dictionary.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

55f81d96 09/04/2009 05:37 pm Luiz Capitulino

monitor: Split monitor_handle_command()

In order to help the integration with unit-tests and having a better
design, this commit splits monitor_handle_command() into two parts.

The parsing code is moved to a function called monitor_parse_command(),
while allocating memory and calling the handler is still done by...

439bcb61 09/04/2009 05:37 pm Luiz Capitulino

monitor: Drop unused macros

GET_TLONG() and GET_TPHYSADDR() are not needed anymore, QInt can
handle such conversions.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

590fb3b7 09/04/2009 05:37 pm Luiz Capitulino

monitor: Drop str_allocated[]

It's not used anymore, as QDict is now used to handle string
memory allocation/deallocation.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

53773581 09/04/2009 05:37 pm Luiz Capitulino

monitor: Drop args[] handling code

This commit drops all the code used to handle the 'args[]' array,
as now we use a dictionary to pass arguments.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

afe67ef2 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_4 to use QDict

This commit ports command handlers that receive four arguments to use
the new monitor's dictionary.

Note that GET_TLONG() and GET_TPHYSADDR() macros are not used anymore.

Signed-off-by: Luiz Capitulino <>...

1bd1442e 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_5 to use QDict

This commit ports command handlers that receive five arguments to use
the new monitor's dictionary.

Note that GET_TLONG() and GET_TPHYSADDR() macros are not used anymore.

Signed-off-by: Luiz Capitulino <>...

aa93e39c 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_6 to use QDict

This commit ports command handlers that receive six arguments to use
the new monitor's dictionary.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

c1925484 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_7 to use QDict

This commit ports command handlers that receive seven arguments to
use the new monitor's dictionary.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>