]> git.baikalelectronics.ru Git - kernel.git/commit
lguest: fix sense if IF flag on interrupt injection
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 20 Jul 2007 12:11:13 +0000 (22:11 +1000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 20 Jul 2007 16:05:16 +0000 (09:05 -0700)
commit03917a2d84f38f2f28615bd0626c57f8037526c9
tree0a2b906f9f087b33e4ca9cb892f35f649ab67fb6
parentd2c987d12d9d7851f6ed2ae39d125e4541bf9732
lguest: fix sense if IF flag on interrupt injection

The sense of the IF bit is backwards in the host interrupt handling.

This means we always save "IF=1" on the stack when injecting an
interrupt.  It turns out this is almost always correct (unless the
guest is taking a page fault in an interrupt due to an unpopulated
vmalloc mapping), so went unnoticed.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/lguest/interrupts_and_traps.c