Statistics
| Branch: | Revision:

root / balloon.c @ 2542bfd5

History | View | Annotate | Download (4.9 kB)

# Date Author Comment
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 <>