summaryrefslogtreecommitdiff
path: root/include/asm-x86/lguest_hcall.h
diff options
context:
space:
mode:
authorBalaji Rao <balajirrao@gmail.com>2007-12-28 11:56:24 +0300
committerRusty Russell <rusty@rustcorp.com.au>2008-01-30 14:50:04 +0300
commitec04b13f67be3c90b38c625f4b8bdfea54c1ff60 (patch)
tree7819de21361fdd65487ef75ea9f2b774e4203f83 /include/asm-x86/lguest_hcall.h
parent5c55841d16dbf7c759fa6fb2ecc5e615b86d17db (diff)
downloadlinux-ec04b13f67be3c90b38c625f4b8bdfea54c1ff60.tar.xz
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>
Diffstat (limited to 'include/asm-x86/lguest_hcall.h')
-rw-r--r--include/asm-x86/lguest_hcall.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-x86/lguest_hcall.h b/include/asm-x86/lguest_hcall.h
index 2091779e91fb..758b9a5d4539 100644
--- a/include/asm-x86/lguest_hcall.h
+++ b/include/asm-x86/lguest_hcall.h
@@ -4,7 +4,7 @@
#define LHCALL_FLUSH_ASYNC 0
#define LHCALL_LGUEST_INIT 1
-#define LHCALL_CRASH 2
+#define LHCALL_SHUTDOWN 2
#define LHCALL_LOAD_GDT 3
#define LHCALL_NEW_PGTABLE 4
#define LHCALL_FLUSH_TLB 5
@@ -20,6 +20,10 @@
#define LGUEST_TRAP_ENTRY 0x1F
+/* Argument number 3 to LHCALL_LGUEST_SHUTDOWN */
+#define LGUEST_SHUTDOWN_POWEROFF 1
+#define LGUEST_SHUTDOWN_RESTART 2
+
#ifndef __ASSEMBLY__
#include <asm/hw_irq.h>