Commit 49669fc551e0ccd2310a9584a9b7343a0bcae477

Authored by Glauber Costa
Committed by Anthony Liguori
1 parent 8b91408b

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 <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 1 changed file with 1 additions and 2 deletions
... ... @@ -920,8 +920,7 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size,
920 920  
921 921 option_rom_offset = qemu_ram_alloc(0x20000);
922 922 oprom_area_size = 0;
923   - cpu_register_physical_memory(0xc0000, 0x20000,
924   - option_rom_offset | IO_MEM_ROM);
  923 + cpu_register_physical_memory(0xc0000, 0x20000, option_rom_offset);
925 924  
926 925 if (using_vga) {
927 926 /* VGA BIOS load */
... ...