History | View | Annotate | Download (678 Bytes)
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: 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: 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: 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: 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>...
move balloon handling to balloon.c
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Allow various header files to be included from non-CPU code
Allow balloon.h, gdbstub.h and kvm.h to be included fromnon-CPU code.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
virtio: Add memory statistics reporting to the balloon driver
When using ballooning to manage overcommitted memory on a host, a system forguests to communicate their memory usage to the host can provide informationthat will minimize the impact of ballooning on the guests. The current method...
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. Somethinglike this must be presented on the list first so people can provide input...
Get rid of _t suffix
Some not so obvious bits, slirp and Xen were left alone for the timebeing.
Signed-off-by: malc <av1474@comtv.ru>
Add missing file from previous commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5875 c046a42c-6fe2-441c-8c8c-71466251a162