aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/lg.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 /drivers/lguest/lg.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 'drivers/lguest/lg.h')
-rw-r--r--drivers/lguest/lg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h
index f921684dbe5c..7408cebe995e 100644
--- a/drivers/lguest/lg.h
+++ b/drivers/lguest/lg.h
@@ -141,6 +141,9 @@ void copy_traps(const struct lguest *lg, struct desc_struct *idt,
141 const unsigned long *def); 141 const unsigned long *def);
142void guest_set_clockevent(struct lguest *lg, unsigned long delta); 142void guest_set_clockevent(struct lguest *lg, unsigned long delta);
143void init_clockdev(struct lguest *lg); 143void init_clockdev(struct lguest *lg);
144bool check_syscall_vector(struct lguest *lg);
145int init_interrupts(void);
146void free_interrupts(void);
144 147
145/* segments.c: */ 148/* segments.c: */
146void setup_default_gdt_entries(struct lguest_ro_state *state); 149void setup_default_gdt_entries(struct lguest_ro_state *state);