mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-28 09:55:57 +00:00
22167cc64d
'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>
12 lines
162 B
C
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;
|
|
}
|