diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-07-26 13:41:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-26 14:35:16 -0400 |
commit | f938d2c892db0d80d144253d4a7b7083efdbedeb (patch) | |
tree | 1fbc946a9fb59827001a5d4d5224abe5e624e605 /drivers/lguest/interrupts_and_traps.c | |
parent | dfb68689bf3e3d31dc9fb5c2bde5379a4ca9b0ec (diff) |
lguest: documentation I: Preparation
The netfilter code had very good documentation: the Netfilter Hacking HOWTO.
Noone ever read it.
So this time I'm trying something different, using a bit of Knuthiness.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/lguest/interrupts_and_traps.c')
-rw-r--r-- | drivers/lguest/interrupts_and_traps.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/lguest/interrupts_and_traps.c b/drivers/lguest/interrupts_and_traps.c index bee029bb2c7b..b2647974e1a7 100644 --- a/drivers/lguest/interrupts_and_traps.c +++ b/drivers/lguest/interrupts_and_traps.c | |||
@@ -1,3 +1,16 @@ | |||
1 | /*P:800 Interrupts (traps) are complicated enough to earn their own file. | ||
2 | * There are three classes of interrupts: | ||
3 | * | ||
4 | * 1) Real hardware interrupts which occur while we're running the Guest, | ||
5 | * 2) Interrupts for virtual devices attached to the Guest, and | ||
6 | * 3) Traps and faults from the Guest. | ||
7 | * | ||
8 | * Real hardware interrupts must be delivered to the Host, not the Guest. | ||
9 | * Virtual interrupts must be delivered to the Guest, but we make them look | ||
10 | * just like real hardware would deliver them. Traps from the Guest can be set | ||
11 | * up to go directly back into the Guest, but sometimes the Host wants to see | ||
12 | * them first, so we also have a way of "reflecting" them into the Guest as if | ||
13 | * they had been delivered to it directly. :*/ | ||
1 | #include <linux/uaccess.h> | 14 | #include <linux/uaccess.h> |
2 | #include "lg.h" | 15 | #include "lg.h" |
3 | 16 | ||