History | View | Annotate | Download (3.7 kB)
Add event notification for guest balloon changes
After setting a balloon target value, applications have tocontinually poll 'query-balloon' to determine whether theguest has reacted to this request. The virtio-balloon backendknows exactly when the guest has reacted though, and thus it...
qapi: fix qmp_balloon() conversion
Commit d72f326431 forgot to convert a call from qerror_report() toerror_set(). Fix it.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qapi: Convert balloon
Note that the command being dropped uses the deprecated MONITOR_CMD_ASYNCAPI, but the new command is a regular synchronous command. There shouldn'tbe visible differences though, as MONITOR_CMD_ASYNC is internal only.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>...
qapi: Convert query-balloon
Please, note that some of the code supporting memory statistics isstill around (eg. virtio_balloon_receive_stats() and reset_stats()).
Also, the qmp_query_balloon() function is synchronous and thus doesn'tmake any use of the (not fully working) monitor's asynchronous command...
balloon: Disassociate handlers from balloon device on unplug
When a balloon device gets unplugged, allow the balloon handlers to befreed.
Reported-by: Shaolong Hu <shu@redhat.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>...
balloon: Simplify code flow
Replace: if (foo) { ... } else { return 0; }
by
if (!foo) { return 0; } ...
Signed-off-by: Amit Shah <amit.shah@redhat.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>
balloon: Separate out stat and balloon handling
Passing on '0' as ballooning target to indicate retrieval of stats isbad API. It also makes 'balloon 0' in the monitor cause a segfault.Have two different functions handle the different functionality instead....
balloon: Fix header comment; add Copyright
Signed-off-by: Amit Shah <amit.shah@redhat.com>
balloon: Don't allow multiple balloon handler registrations
Multiple balloon devices don't make sense; disallow more than oneregistration attempt to register handlers.
Signed-off-by: Amit Shah <amit.shah@redhat.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>...
balloon: Reject negative balloon values
Negative balloon values don't make sense, reject them and throw a qerrorwith QERR_INVALID_PARAMETER_VALUE.
Reported-by: Mike Cao <bcao@redhat.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>...
balloon: Make functions, local vars static
balloon.h had function declarations for a couple of functions that arelocal to balloon.c. Make them static.
Drop the 'qemu_' prefix for balloon.c-local variables, and make themstatic.
Signed-off-by: Amit Shah <amit.shah@redhat.com>...
balloon: Add braces around if statements
Remove unused sysemu.h include directives
Remove unused sysemu.h include directives to speed up buildwith the following patches.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
trace: Trace entry point of balloon request handler
Signed-off-by: Prerna Saxena
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
move balloon handling to balloon.c
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>