qemu-kvm: drop kvm-tpr-opt BIOS region hack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
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 <mtosatti@xxxxxxxxxx>

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" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux