KVM test: Memory ballooning test for KVM guest
This test verifies memory ballooning functionality for KVM guests.
It will boot a guest with -balloon virtio, increase and decrease
memory on qemu monitor, verifying the changes, for a given number
of iterations.
Changes from v3:
* Also check current memory reported by the guest to see if
ballooning was successful
* Added a new method to vm, get_current_memory_size(), to
report total memory for the guest OS at a given time
* Refactored some test functions
* Resets ballooned memory at the end of the test (which
exercises a little more the functionality and avoids
problems when running through multiple iterations).
* Make the test run for at least 5 iterations, configurable
in the 'iterations' parameter. This way the functionality
is more thoroughly tested, giving testers with particular
needs some run to customize how many iterations they want
Signed-off-by: Pradeep Kumar Surisetty <psuriset@linux.vnet.ibm.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4419 592f7852-d20e-0410-864c-8624ca9c26a4
3 files changed