On Thu, Dec 19, 2019 at 09:11:22AM +0100, Gerd Hoffmann wrote:
On Wed, Dec 18, 2019 at 11:04:26AM -0800, Bin Gao
On physical hardware, some PCI devices are not
detectable when UEFI
BIOS invokes our InitializeYourself() function. But they are
guaranteed to be available before UEFI invokes our PreparToBoot()
function. So in the case of running CSM on physical hardware, we execute
pci_probe_devices() at PrepareToBoot() stage.
Hmm, I'm wondering whenever we can just move the pci_probe_devices()
call unconditionally (i.e. do it for qemu too).
In QEMU/OVMF case, all PCI devices are already available before the first call
InitializeYourself() comes from BIOS. So I think there is no need to apply this
change to QEMU.