Restore IO_MEM_ROM mark to bios when registering the memory with kvm
commitad9f5de07f66b878c117cdcaf23834bdb1b71d29
authorAvi Kivity <avi@qumranet.com>
Thu, 3 Jan 2008 10:20:21 +0000 (3 12:20 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 Jan 2008 10:20:21 +0000 (3 12:20 +0200)
treee091814741ab3cc1c41aff45c2414173339ce4c6
parent3382568ee1663ec250b165c823081220e2d05ee0
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 <avi@qumranet.com>
hw/pc.c