Skip to contentSkip to conversation

vmx-mmio-ioemu.patch

PATCH New Leendert van Doorn 1 participant 1 message Sep 2, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vmx-mmio-ioemu.patch

Attached are the patches for new ioemu communication mechanism. The new mechanism provides richer I/O operation semantics, such as and,or,xor operation on MMIO space. This is necessary for operating systems such as Windows XP and Windows 2003.

This is the first part of a two part patch. This patch applies to ioemu.

(patches are against current xen-vt-testing tree)

tools/ioemu/exec.c +4 -3
diff -r 04ca47c298b5 tools/ioemu/exec.c
@@ -142,6 +142,10 @@
 #else
         setvbuf(logfile, NULL, _IOLBF, 0);
 #endif
+/*
+    	stdout = logfile;
+    	stderr = logfile;
+*/
     }
 }
 
@@ -386,9 +390,6 @@
                     io_mem_write[io_index][1](io_mem_opaque[io_index], addr, val);
                     l = 2;
                 } else {
-                    if (l!=1){
-                        fprintf(logfile, "ERROR 8 bit mmio\n");
-                    }
                     /* 8 bit access */
                     val = ldub_raw(buf);
                     io_mem_write[io_index][0](io_mem_opaque[io_index], addr, val);
tools/ioemu/target-i386-dm/helper2.c +189 -105

329 lines not on this page · raw message

tools/ioemu/vl.c +5 -0
diff -r 04ca47c298b5 tools/ioemu/vl.c
@@ -413,6 +413,11 @@
     fprintf(stderr, "qemu: hardware error: ");
     vfprintf(stderr, fmt, ap);
     fprintf(stderr, "\n");
+    if (logfile) {
+	fprintf(logfile, "qemu: hardware error: ");
+	vfprintf(logfile, fmt, ap);
+	fprintf(logfile, "\n");
+    }
     va_end(ap);
     abort();
 }