From: Marcelo Tosatti <mtosa...@redhat.com>

Commit c2333d898b52 changed kvm-tpr-opt.c to use
cpu_physical_memory_write_rom for BIOS patching.

BIOS map at 0xf0000 can now be registered as IO_MEM_ROM.

Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com>

diff --git a/hw/pc.c b/hw/pc.c
index 9c08573..b624873 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -956,10 +956,9 @@ void pc_memory_init(ram_addr_t ram_size,
         isa_bios_size = 128 * 1024;
     cpu_register_physical_memory(0xd0000, (192 * 1024) - isa_bios_size,
                                  IO_MEM_UNASSIGNED);
-    /* kvm tpr optimization needs the bios accessible for write, at least to 
qemu itself */
     cpu_register_physical_memory(0x100000 - isa_bios_size,
                                  isa_bios_size,
-                                 (bios_offset + bios_size - isa_bios_size) /* 
| IO_MEM_ROM */);
+                                 (bios_offset + bios_size - isa_bios_size) | 
IO_MEM_ROM);
 
     if (extboot_drive) {
         option_rom[nb_option_roms++] = qemu_strdup(EXTBOOT_FILENAME);
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to