Inject NMI on vmexits when it is an interrupt and, low and behold, it interrupts...
authorRonald G. Minnich <rminnich@gmail.com>
Tue, 25 Aug 2015 00:13:17 +0000 (17:13 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Nov 2015 23:24:25 +0000 (18:24 -0500)
Mirabile dictu. Emphasis on the 'bile' part.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tests/vmm/vmrunkernel.c

index fe4bd82..118557d 100644 (file)
@@ -371,7 +371,7 @@ int main(int argc, char **argv)
                        case EXIT_REASON_EXTERNAL_INTERRUPT:
                                fprintf(stderr, "XINT\n");
                                // Just inject a GPF for now. See what shakes.
-                               vmctl.interrupt = 0;//x8000030e; // b0d;
+                               vmctl.interrupt = 0x80000302; // b0d;
                                vmctl.command = RESUME;
                                break;
                        case EXIT_REASON_IO_INSTRUCTION: