aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lguest.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2007-10-21 21:03:35 -0400
committerRusty Russell <rusty@rustcorp.com.au>2007-10-23 01:49:53 -0400
commitc18acd73ffc209def08003a1927473096f66c5ad (patch)
treedd8e292ac8ca90b061b7e37ad6947231ced566e3 /include/linux/lguest.h
parentee3db0f2b6053b65f3b70253f5f810d9a3d67b28 (diff)
Allow guest to specify syscall vector to use.
(Based on Ron Minnich's LGUEST_PLAN9_SYSCALL patch). This patch allows Guests to specify what system call vector they want, and we try to reserve it. We only allow one non-Linux system call vector, to try to avoid DoS on the Host. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/lguest.h')
-rw-r--r--include/linux/lguest.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/lguest.h b/include/linux/lguest.h
index 9ddac2f0a97c..083052236db9 100644
--- a/include/linux/lguest.h
+++ b/include/linux/lguest.h
@@ -48,6 +48,9 @@ struct lguest_data
48/* Fields initialized by the Guest at boot: */ 48/* Fields initialized by the Guest at boot: */
49 /* Instruction range to suppress interrupts even if enabled */ 49 /* Instruction range to suppress interrupts even if enabled */
50 unsigned long noirq_start, noirq_end; 50 unsigned long noirq_start, noirq_end;
51
52 /* The vector to try to use for system calls (0x40 or 0x80). */
53 unsigned int syscall_vec;
51}; 54};
52extern struct lguest_data lguest_data; 55extern struct lguest_data lguest_data;
53#endif /* __ASSEMBLY__ */ 56#endif /* __ASSEMBLY__ */