Files
Sasha Levin 22167cc64d kvm tools: Add boot test to checks
'make check' will now try booting a kernel and will exit
gracefully once the kernel has finished loading.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
2015-06-01 16:39:43 +01:00

12 lines
162 B
C

#include <linux/reboot.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
puts("hello, KVM guest!\r");
reboot(LINUX_REBOOT_CMD_RESTART);
return 0;
}