On 06/01/13 05:35, Kevin O'Connor wrote:
The plan on uefi was to use the smbios tables to detect qemu. Once detection is in place, the DEBUG_IO support could be made dependent on QEMU_HARDWARE and only activated after detection succeeds.
Understood.
I wasn't aware this was pending on me (skimmed src/csm.c). I'll see what I can do in OvmfPkg/SmbiosPlatformDxe. Doesn't seem particularly easy, given that qemu may optionally pass smbios structures over fw_cfg (see the -smbios option, in which case OVMF should not build, just install them), plus there's a big number of mandatory smbios structures for which almost a full system configuration must be collected, seemingly. I hope edk2 will at least provide the data types.
Thanks Laszlo