Statistics
| Branch: | Revision:

root / balloon.c @ feature-archipelago

History | View | Annotate | Download (3.7 kB)

# Date Author Comment
9c17d615 12/19/2012 09:32 am Paolo Bonzini

softmmu: move include files to include/sysemu/

Signed-off-by: Paolo Bonzini <>

83c9089e 12/19/2012 09:31 am Paolo Bonzini

monitor: move include files to include/monitor/

Signed-off-by: Paolo Bonzini <>

7b1b5d19 12/19/2012 09:31 am Paolo Bonzini

qapi: move include files to include/qobject/

Signed-off-by: Paolo Bonzini <>

022c62cb 12/19/2012 09:31 am Paolo Bonzini

exec: move include files to include/exec/

Signed-off-by: Paolo Bonzini <>

973603a8 06/15/2012 07:34 pm Daniel P. Berrange

Add event notification for guest balloon changes

After setting a balloon target value, applications have to
continually poll 'query-balloon' to determine whether the
guest has reacted to this request. The virtio-balloon backend
knows exactly when the guest has reacted though, and thus it...

b3c83a22 04/27/2012 05:44 pm Luiz Capitulino

qapi: fix qmp_balloon() conversion

Commit d72f326431 forgot to convert a call from qerror_report() to
error_set(). Fix it.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Michael Roth <>

d72f3264 12/06/2011 03:40 pm Luiz Capitulino

qapi: Convert balloon

Note that the command being dropped uses the deprecated MONITOR_CMD_ASYNC
API, but the new command is a regular synchronous command. There shouldn't
be visible differences though, as MONITOR_CMD_ASYNC is internal only.

Signed-off-by: Anthony Liguori <>...

96637bcd 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-balloon

Please, note that some of the code supporting memory statistics is
still around (eg. virtio_balloon_receive_stats() and reset_stats()).

Also, the qmp_query_balloon() function is synchronous and thus doesn't
make any use of the (not fully working) monitor's asynchronous command...

8a7d552c 09/09/2011 08:58 pm Amit Shah

balloon: Disassociate handlers from balloon device on unplug

When a balloon device gets unplugged, allow the balloon handlers to be
freed.

Reported-by: Shaolong Hu <>
Signed-off-by: Amit Shah <>
Signed-off-by: Amit Shah <>...

182b9203 08/05/2011 12:43 am Amit Shah

balloon: Simplify code flow

Replace:
if (foo) {
...
} else {
return 0;
}

by

if (!foo) {
return 0;
}
...

Signed-off-by: Amit Shah <>
Reviewed-by: Markus Armbruster <>

30fb2ca6 08/05/2011 12:43 am Amit Shah

balloon: Separate out stat and balloon handling

Passing on '0' as ballooning target to indicate retrieval of stats is
bad API. It also makes 'balloon 0' in the monitor cause a segfault.
Have two different functions handle the different functionality instead....

73428a8e 08/05/2011 12:43 am Amit Shah

balloon: Fix header comment; add Copyright

Signed-off-by: Amit Shah <>

6c6ec182 08/05/2011 12:43 am Amit Shah

balloon: Don't allow multiple balloon handler registrations

Multiple balloon devices don't make sense; disallow more than one
registration attempt to register handlers.

Signed-off-by: Amit Shah <>
Reviewed-by: Markus Armbruster <>...

514e73ec 08/05/2011 12:43 am Amit Shah

balloon: Reject negative balloon values

Negative balloon values don't make sense, reject them and throw a qerror
with QERR_INVALID_PARAMETER_VALUE.

Reported-by: Mike Cao <>
Signed-off-by: Amit Shah <>
Reviewed-by: Markus Armbruster <>...

0a2a30d5 08/05/2011 12:43 am Amit Shah

balloon: Make functions, local vars static

balloon.h had function declarations for a couple of functions that are
local to balloon.c. Make them static.

Drop the 'qemu_' prefix for balloon.c-local variables, and make them
static.

Signed-off-by: Amit Shah <>...

b80bc1dd 08/05/2011 12:43 am Amit Shah

balloon: Add braces around if statements

Signed-off-by: Amit Shah <>
Reviewed-by: Markus Armbruster <>

a08784dd 04/15/2011 09:25 pm Blue Swirl

Remove unused sysemu.h include directives

Remove unused sysemu.h include directives to speed up build
with the following patches.

Signed-off-by: Blue Swirl <>

62dd89de 09/10/2010 12:22 am Prerna Saxena

trace: Trace entry point of balloon request handler

Signed-off-by: Prerna Saxena

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>

28c28973 04/09/2010 07:55 pm Paolo Bonzini

move balloon handling to balloon.c

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Aurelien Jarno <>