commit 6b8bb99a9cde386d72b4b7c22b92f4bdec333dab Author: Avi Kivity Date: Thu Jan 3 12:20:21 2008 +0200 kvm: qemu: restore IO_MEM_ROM mark to bios when registering the memory with kvm We removed the IO_MEM_ROM mark for qemu, since the tpr optimization needs to update the bios. However, kvm_cpu_register_physical_memory() uses the mark for other purposes, so keep it. The removal broke bootstrap on older kernels. Signed-off-by: Avi Kivity diff --git a/qemu/hw/pc.c b/qemu/hw/pc.c index 5a1b7d4..179585f 100644 --- a/qemu/hw/pc.c +++ b/qemu/hw/pc.c @@ -865,8 +865,7 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size, if (kvm_allowed) kvm_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); #endif