From 544995e22e1c78f7190cf984d21292e8df0bce55 Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Thu, 23 Apr 2009 15:20:55 -0400 Subject: [PATCH] suport device driver initialization model According to PnP specification, Appendix B, Option ROMs that support DDIM (device driver initialization model) should have their memory space writeable. KVM deviates from us here, by removing the IO_MEM_ROM flag, to allow for PCI option ROMs (they require DDIM). However, there's absolutely no reason we can't do the same. Signed-off-by: Glauber Costa Signed-off-by: Anthony Liguori --- hw/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pc.c b/hw/pc.c index 38493907020..6e3d03f6c81 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -899,7 +899,7 @@ vga_bios_error: load_linux(phys_ram_base + option_rom_offset, kernel_filename, initrd_filename, kernel_cmdline); cpu_register_physical_memory(0xd0000, TARGET_PAGE_SIZE, - option_rom_offset | IO_MEM_ROM); + option_rom_offset); offset = TARGET_PAGE_SIZE; } -- 2.39.5