]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Add APIs to allow pausing guests
authorSasha Levin <levinsasha928@gmail.com>
Mon, 30 May 2011 17:27:52 +0000 (20:27 +0300)
committerPekka Enberg <penberg@kernel.org>
Thu, 2 Jun 2011 08:37:50 +0000 (11:37 +0300)
commit8a7951f99f2083b56d1c65c7886819fd5a426377
tree4507b9004fa1a7dd08b386019b69b4de67e639c0
parentea50a9bba4e4f34dbd2cd1ca0eb787c493f49253
kvm tools: Add APIs to allow pausing guests

Allow pausing and unpausing guests running on the host.
Pausing a guest means that none of the VCPU threads are running
KVM_RUN until they are unpaused.

The following API functions are added:
 void kvm__pause(void);
 void kvm__continue(void);
 void kvm__notify_paused(void);

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/kvm-cpu.h
tools/kvm/include/kvm/kvm.h
tools/kvm/kvm-cpu.c
tools/kvm/kvm-run.c
tools/kvm/kvm.c