mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-28 18:15:41 +00:00
ca379b8386
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>
12 lines
226 B
C
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)");
|
|
}
|