From a2c7db64f561821fd528614e68c4d92718210126 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 18 Jun 2008 09:36:47 +0100 Subject: Add PV-GRUB This fetches GRUB1 sources, applies the {graphical, print function, save default, and ext3_256byte} patches from debian, and applies a patch to make it work on x86_64 and port it to Mini-OS. By using libxc, PV-GRUB can then "kexec" the loaded kernel from inside the domain itself, hence permitting to avoid the security-concerned pygrub. Signed-off-by: Samuel Thibault --- extras/mini-os/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extras/mini-os/main.c') diff --git a/extras/mini-os/main.c b/extras/mini-os/main.c index 6c26e96057..dac185a528 100644 --- a/extras/mini-os/main.c +++ b/extras/mini-os/main.c @@ -59,11 +59,13 @@ static void call_main(void *p) * crashing. */ //sleep(1); +#ifndef CONFIG_GRUB sparse((unsigned long) &__app_bss_start, &__app_bss_end - &__app_bss_start); #ifdef HAVE_LWIP start_networking(); #endif init_fs_frontend(); +#endif #ifdef CONFIG_QEMU if (!fs_import) { @@ -154,7 +156,7 @@ void _exit(int ret) #ifdef HAVE_LWIP stop_networking(); #endif - unbind_all_ports(); + stop_kernel(); if (!ret) { /* No problem, just shutdown. */ struct sched_shutdown sched_shutdown = { .reason = SHUTDOWN_poweroff }; -- cgit v1.2.3