Re: [edk2] OVMF KVM+Xen support

Subject: Re: [edk2] OVMF KVM+Xen support

From: Bei Guan <>

To: Jordan Justen <>

Date: 2011-06-17 21:24:23

2011/6/17 Jordan Justen <>
On Thu, Jun 16, 2011 at 10:08, Bei Guan <> wrote:
> Yes, I know how to do publish Xen SMBIOS table when OVMF running inside Xen.
> However, if we implement it just by publishing the Xen SMBIOS to OVMF with a
> new Xen specific DXE driver, we need to change OvmfPkg[Ia32|X64].dsc and
> OvmfPkg[Ia32|X64].fdf to use MdeModulePkg/Universal/SmbiosDxe and re-compile
> a new binary file OVMF.fd to support OVMF running inside QEMU. Is it right?
> If yes, it may be not convenient. So, I think whether we can build just one
> binary file OVMF.fd to support both OVMF on Xen and OVMF on QEMU. Do we need
> to do this?

Yes, if we can accomplish this, then it would be preferred. We would
be willing to accept some extra size in OVMF if we can support both
environments with a single build.
So, can I just copy the codeMdeModulePkg/Universal/SmbiosDxe to OVMF and modify it to support both environment? Would this mean we will maintain redundant code in the future?

Bei Guan

If this cannot work, then we'd still want to maintain a single set of
DSC/FDF. We could handle this with a build flag, similar to how

For instance, if XEN_SUPPORT was used, then Xen OVMF could be built with:

This could be used in DSC/FDF files to control additional driver
inclusion, modify PCDs, etc.