Skip to contentSkip to conversation

qemu-unregister-c0000.patch

PATCH New Arun Sharma 1 participant 1 message May 24, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-unregister-c0000.patch

QEMU fixes

- VMX domain owns 0xcxxxx.
- guard the fprintf with a log level check

tools/ioemu/hw/pc.c +1 -1
@@ -419,11 +419,11 @@
     ret = load_image(buf, phys_ram_base + vga_bios_offset);
 #endif 
 
+#ifndef NOBIOS
     /* setup basic memory access */
     cpu_register_physical_memory(0xc0000, 0x10000, 
                                  vga_bios_offset | IO_MEM_ROM);
 
-#ifndef NOBIOS
     /* map the last 128KB of the BIOS in ISA space */
     isa_bios_size = bios_size;
     if (isa_bios_size > (128 * 1024))

===== tools/ioemu/target-i386-dm/helper2.c 1.2 vs edited =====

tools/ioemu/target-i386-dm/helper2.c +2 -1
@@ -313,7 +313,8 @@
 
 	intr = &(((vcpu_iodata_t *) shared_page)->vp_intr[0]);
 	atomic_set_bit(vector, intr);
-        fprintf(logfile, "injecting vector: %x\n", vector);
+        if (loglevel & CPU_LOG_INT)
+                fprintf(logfile, "injecting vector: %x\n", vector);
 	env->send_event = 1;
 }