[edk2-devel] [PATCH 07/23] MdePkg: Update BaseIoLibIntrinsicSev to support Tdx

Gerd Hoffmann kraxel at redhat.com
Fri Aug 20 06:41:15 UTC 2021


  Hi,

> > One more question:  How does this align with the WorkArea changes posted
> > yesterday?  The WorkArea gets a mode field for SEV / TDX / normal, so I think
> > you should be able to use that instead of invoking cpuid each time you need
> > to know whenever tdx is active or not.
> We don't want to make the TdxProbeLib depend on the WorkArea.

Why?

> CPUID(0x21) makes TdxProbeLib less dependency.  For Intel TDX the
> WorkArea is designed to be used in ResetVector phase.

I don't see why the dependency is a problem.  TDX-enabled builds need
both TdxProbeLib / TdxLib and WorkArea anyway.

Each cpuid instruction is a vmexit, and the code invokes cpuid twice for
each io / mmio access.

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#79625): https://edk2.groups.io/g/devel/message/79625
Mute This Topic: https://groups.io/mt/84837896/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list