Loading Documentation/lguest/Makefile +1 −1 Original line number Diff line number Diff line # This creates the demonstration utility "lguest" which runs a Linux guest. CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE LDLIBS:=-lz all: lguest Loading arch/x86/lguest/boot.c +2 −2 Original line number Diff line number Diff line Loading @@ -931,7 +931,7 @@ static void lguest_restart(char *reason) * that we can fit comfortably. * * First we need assembly templates of each of the patchable Guest operations, * and these are in lguest_asm.S. */ * and these are in i386_head.S. */ /*G:060 We construct a table from the assembler templates: */ static const struct lguest_insns Loading Loading @@ -1093,7 +1093,7 @@ __init void lguest_init(void) acpi_ht = 0; #endif /* We set the perferred console to "hvc". This is the "hypervisor /* We set the preferred console to "hvc". This is the "hypervisor * virtual console" driver written by the PowerPC people, which we also * adapted for lguest's use. */ add_preferred_console("hvc", 0, NULL); Loading drivers/lguest/core.c +1 −1 Original line number Diff line number Diff line Loading @@ -224,7 +224,7 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user) break; /* If the Guest asked to be stopped, we sleep. The Guest's * clock timer or LHCALL_BREAK from the Waker will wake us. */ * clock timer or LHREQ_BREAK from the Waker will wake us. */ if (cpu->halted) { set_current_state(TASK_INTERRUPTIBLE); schedule(); Loading drivers/lguest/lguest_user.c +2 −3 Original line number Diff line number Diff line Loading @@ -307,9 +307,8 @@ static int close(struct inode *inode, struct file *file) * kmalloc()ed string, either of which is ok to hand to kfree(). */ if (!IS_ERR(lg->dead)) kfree(lg->dead); /* We clear the entire structure, which also marks it as free for the * next user. */ memset(lg, 0, sizeof(*lg)); /* Free the memory allocated to the lguest_struct */ kfree(lg); /* Release lock and exit. */ mutex_unlock(&lguest_lock); Loading Loading
Documentation/lguest/Makefile +1 −1 Original line number Diff line number Diff line # This creates the demonstration utility "lguest" which runs a Linux guest. CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE LDLIBS:=-lz all: lguest Loading
arch/x86/lguest/boot.c +2 −2 Original line number Diff line number Diff line Loading @@ -931,7 +931,7 @@ static void lguest_restart(char *reason) * that we can fit comfortably. * * First we need assembly templates of each of the patchable Guest operations, * and these are in lguest_asm.S. */ * and these are in i386_head.S. */ /*G:060 We construct a table from the assembler templates: */ static const struct lguest_insns Loading Loading @@ -1093,7 +1093,7 @@ __init void lguest_init(void) acpi_ht = 0; #endif /* We set the perferred console to "hvc". This is the "hypervisor /* We set the preferred console to "hvc". This is the "hypervisor * virtual console" driver written by the PowerPC people, which we also * adapted for lguest's use. */ add_preferred_console("hvc", 0, NULL); Loading
drivers/lguest/core.c +1 −1 Original line number Diff line number Diff line Loading @@ -224,7 +224,7 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user) break; /* If the Guest asked to be stopped, we sleep. The Guest's * clock timer or LHCALL_BREAK from the Waker will wake us. */ * clock timer or LHREQ_BREAK from the Waker will wake us. */ if (cpu->halted) { set_current_state(TASK_INTERRUPTIBLE); schedule(); Loading
drivers/lguest/lguest_user.c +2 −3 Original line number Diff line number Diff line Loading @@ -307,9 +307,8 @@ static int close(struct inode *inode, struct file *file) * kmalloc()ed string, either of which is ok to hand to kfree(). */ if (!IS_ERR(lg->dead)) kfree(lg->dead); /* We clear the entire structure, which also marks it as free for the * next user. */ memset(lg, 0, sizeof(*lg)); /* Free the memory allocated to the lguest_struct */ kfree(lg); /* Release lock and exit. */ mutex_unlock(&lguest_lock); Loading