lguest: Reboot support
Reboot Implemented (Prevent fd leak, fix style and fix documentation --RR) Signed-off-by: Balaji Rao <balajirrao@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Rusty Russell
parent
5c55841d16
commit
ec04b13f67
@@ -235,6 +235,8 @@ int run_guest(struct lguest *lg, unsigned long __user *user)
|
||||
lguest_arch_handle_trap(lg);
|
||||
}
|
||||
|
||||
if (lg->dead == ERR_PTR(-ERESTART))
|
||||
return -ERESTART;
|
||||
/* The Guest is dead => "No such file or directory" */
|
||||
return -ENOENT;
|
||||
}
|
||||
|
Reference in New Issue
Block a user