Adding a KVM profiler to autotest

Create a profiler to bracket test run(s) by loading and unloading the
kvm and kvm_intel or kvm_amd kernel modules.  Allows comparison
of other test runs with and without the KVM modules loaded.

Add return codes to the kvm_control utility functions to detect nonzero
return values for modprobe / rmmod.

See http://www.linux-kvm.org/ for description of kernel-assisted VMs.

Motivation: improve coverage for the kernel virtual machine support code.

Risk factor: low, an optional new profiler.

Signed-off-by: Jeffrey S Miller <jsmiller@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3979 592f7852-d20e-0410-864c-8624ca9c26a4
3 files changed