RE: [PATCH] OvmfPkg: reserve igd memory by E820

From: Corvin_Köhne <>
Date: Tue, 05 Apr 2022 07:47:38 UTC

> Where does the intel gop driver come from?  Extracted from host
> firmware?

I don't know if it's possible to extract it from host firmware within
OS context easily. According to Intel you should ask your board
manufacturer. We're producing our own motherboards with an own
BIOS. So, I'm reusing the Intel GOP driver from our host BIOS.

> Ah, ok, didn't notice the subtile differences with the small letter at
> the end.  GVT-d + GVT-g is clear then.  What is GVT-s ?

I'm not familiar with GVT-s. I just know that it exists.

> Ideally the guest would allocate and initialize this all itself.
> That is hard for the GSM though when it requires an identity
> mapping.
> Having the guest check whenever the GSM register points to reserved
> memory and if so use it instead of allocating memory should work I
> think.

To allocate GSM, the guest has to detect the size of GSM. Detecting
the size is platform dependent. Writing a small EFI driver to
detect the GSM size and to allocate a proper memory region should
be easy.

> Once we have the code for vgabios and PlatformGopPolicy we can roll them
> with the intelgop driver into a rom image with EfiRom.  Ideally also add
> opregion content to the rom somehow.

Sounds good. Does these EFI drivers have to be maintained outside of

Best regards

Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans Beckhoff
Registered office: Verl, Germany | Register court: Guetersloh HRA 7075