diff options
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 | ||