]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/lguest/interrupts_and_traps.c
lguest: use KVM hypercalls
[linux-2.6-omap-h63xx.git] / drivers / lguest / interrupts_and_traps.c
index 415fab0125acd8e465e1fe2e6fe8241d75894868..504091da1737e1ee17c41c49762a88eed83e7d41 100644 (file)
@@ -288,9 +288,10 @@ static int direct_trap(unsigned int num)
 
        /* The Host needs to see page faults (for shadow paging and to save the
         * fault address), general protection faults (in/out emulation) and
-        * device not available (TS handling), and of course, the hypercall
-        * trap. */
-       return num != 14 && num != 13 && num != 7 && num != LGUEST_TRAP_ENTRY;
+        * device not available (TS handling), invalid opcode fault (kvm hcall),
+        * and of course, the hypercall trap. */
+       return num != 14 && num != 13 && num != 7 &&
+                       num != 6 && num != LGUEST_TRAP_ENTRY;
 }
 /*:*/