public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* qemu-kvm: drop kvm-tpr-opt BIOS region hack
@ 2010-10-18 14:05 Marcelo Tosatti
  0 siblings, 0 replies; only message in thread
From: Marcelo Tosatti @ 2010-10-18 14:05 UTC (permalink / raw)
  To: kvm

 
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@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);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-18 16:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-18 14:05 qemu-kvm: drop kvm-tpr-opt BIOS region hack Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox