vmmcp: ignore IF flags
authorRonald G. Minnich <rminnich@gmail.com>
Sun, 6 Sep 2015 22:20:20 +0000 (15:20 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Nov 2015 23:53:51 +0000 (18:53 -0500)
we're using the VAPIC and don't need to worry about the processor
state any more.

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

index 7a50fc0..7f1f3e0 100644 (file)
@@ -708,7 +708,7 @@ fprintf(stderr, "%p %p %p %p\n", PGSIZE, PGSHIFT, PML1_SHIFT, PML1_PTE_REACH);
                if (consdata) {
                        if (debug) fprintf(stderr, "inject an interrupt\n");
                        fprintf(stderr, "XINT 0x%x 0x%x\n", vmctl.intrinfo1, vmctl.intrinfo2);
-                       if ((vmctl.intrinfo1 == 0) && (vmctl.regs.tf_rflags & 0x200)) {
+                       if (1 || (vmctl.intrinfo1 == 0) && (vmctl.regs.tf_rflags & 0x200)) {
                                vmctl.interrupt = 0x80000000 | virtioirq;
                                virtio_mmio_set_vring_irq();
                                consdata = 0;