diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-06-13 00:27:08 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-06-12 08:57:09 -0400 |
commit | 9f155a9b3d5a5444bcc5e049ec2547bb5107150e (patch) | |
tree | ef8fe2d5a319abb3bb1c89374f9d2fef1b0881c3 /drivers/lguest/lg.h | |
parent | 92b4d8df8436cdd74d22a2a5b6b23b9abc737a3e (diff) |
lguest: allow any process to send interrupts
We currently only allow the Launcher process to send interrupts, but it
as we already send interrupts from the hrtimer, it's a simple matter of
extracting that code into a common set_interrupt routine.
As we switch to a thread per virtqueue, this avoids a bottleneck through the
main Launcher process.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/lg.h')
-rw-r--r-- | drivers/lguest/lg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h index 6201ce59e886..040cb70780e7 100644 --- a/drivers/lguest/lg.h +++ b/drivers/lguest/lg.h | |||
@@ -143,6 +143,7 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user); | |||
143 | /* interrupts_and_traps.c: */ | 143 | /* interrupts_and_traps.c: */ |
144 | unsigned int interrupt_pending(struct lg_cpu *cpu, bool *more); | 144 | unsigned int interrupt_pending(struct lg_cpu *cpu, bool *more); |
145 | void try_deliver_interrupt(struct lg_cpu *cpu, unsigned int irq, bool more); | 145 | void try_deliver_interrupt(struct lg_cpu *cpu, unsigned int irq, bool more); |
146 | void set_interrupt(struct lg_cpu *cpu, unsigned int irq); | ||
146 | bool deliver_trap(struct lg_cpu *cpu, unsigned int num); | 147 | bool deliver_trap(struct lg_cpu *cpu, unsigned int num); |
147 | void load_guest_idt_entry(struct lg_cpu *cpu, unsigned int i, | 148 | void load_guest_idt_entry(struct lg_cpu *cpu, unsigned int i, |
148 | u32 low, u32 hi); | 149 | u32 low, u32 hi); |