Files
kvmtool/kvm-debug.c
T
Pekka Enberg ca379b8386 kvm tools: Add 'kvm debug' command
This patch adds a 'kvm debug' command that's currently an alias for

  kill -3 `pidof kvm`

which prints out debugging diagnostics for guests.

Suggested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
2015-06-01 16:39:44 +01:00

12 lines
226 B
C

#include <stdio.h>
#include <string.h>
#include <kvm/util.h>
#include <kvm/kvm-cmd.h>
#include <kvm/kvm-debug.h>
int kvm_cmd_debug(int argc, const char **argv, const char *prefix)
{
return system("kill -3 $(pidof kvm)");
}