Skip to contentSkip to conversation

avoid to re-initialize pci in rombios.

PATCH New Akio Takebe 1 participant 1 message Jan 6, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avoid to re-initialize pci in rombios.

Hi,

When I use a pass-though device, I get the following error.

Overlapped to device[00:03.0][Region:0][Address:0000c000h][Size:00000100h]
pt_bar_mapping: ptdev[00:06.0][Region:0][Address:0000c000h][Size:00000100h] is overlapped.

It's caused by reinitializing pci resources.
rombios should not initialize pci because hvmloader already setup pci. If pci devices are re-initialized, their configurations may corrupt.

Best Regards,

Akio Takebe

tools/firmware/rombios/rombios.c +2 -0
diff -r e2f36d066b7b tools/firmware/rombios/rombios.c
@@ -10973,8 +10973,10 @@
   call rombios32_init
 #else
 #if BX_PCIBIOS
+#ifndef HVMASSIST
   call pcibios_init_iomem_bases
   call pcibios_init_irqs
+#endif //HVMASSIST
 #endif //BX_PCIBIOS
 #endif
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel