This project is mirrored from https://github.com/tianocore/edk2.git. Pull mirroring updated .
  1. 20 May, 2022 2 commits
    • Tom Lendacky's avatar
      OvmfPkg: Make an Ia32/X64 hybrid build work with SEV · a21a3438
      Tom Lendacky authored
      The BaseMemEncryptSevLib functionality was updated to rely on the use of
      the OVMF/SEV workarea to check for SEV guests. However, this area is only
      updated when running the X64 OVMF build, not the hybrid Ia32/X64 build.
      Base SEV support is allowed under the Ia32/X64 build, but it now fails
      to boot as a result of the change.
      
      Update the ResetVector code to check for SEV features when built for
      32-bit mode, not just 64-bit mode (requiring updates to both the Ia32
      and Ia32X64 fdf files).
      
      Fixes: f1d1c337
      
      
      Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
      Cc: Jiewen Yao <jiewen.yao@intel.com>
      Cc: Jordan Justen <jordan.l.justen@intel.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Erdem Aktas <erdemaktas@google.com>
      Cc: James Bottomley <jejb@linux.ibm.com>
      Cc: Michael Roth <michael.roth@amd.com>
      Cc: Min Xu <min.m.xu@intel.com>
      Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
      Reviewed-by: default avatarArd Biesheuvel <ardb@kernel.org>
      a21a3438
    • Min Xu's avatar
      OvmfPkg/OvmfPkgX64: Use different CcProbeLib when SMM is on or off · a72d552f
      Min Xu authored
      BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3930
      
      
      
      CcProbeLib is designed to check the vm guest type. The OvmfPkg/CcProbeLib
      reads the OvmfWorkArea (0x80B000) to get the vm guest type which is
      written by each guest (SEV or TDX guest). But in SMM drivers the access
      to OvmfWorkArea is illegal. PiSmmCpuDxeSmm.inf is an example. It uses
      IoLib which in OvmfPkgX64 BaseIoLibIntrinsicSev.inf is included. The
      IoLib probes if the working guest is td guest by calling CcProbe().
      
      So CcProbeLibNull will be included when SMM_REQUIRE is set. Currently
      only TDVF uses CcProbe to check the guest type, and TDVF doesn't
      support SMM, so this fix has no side-effect.
      
      Cc: Andrew Fish <afish@apple.com>
      Cc: Leif Lindholm <quic_llindhol@quicinc.com>
      Cc: Michael D Kinney <michael.d.kinney@intel.com>
      Cc: Dann Frazier <dann.frazier@canonical.com>
      Cc: Erdem Aktas <erdemaktas@google.com>
      Cc: James Bottomley <jejb@linux.ibm.com>
      Cc: Jiewen Yao <jiewen.yao@intel.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Cc: Liming Gao <gaoliming@byosoft.com.cn>
      Tested-by: default avatardann frazier <dann.frazier@canonical.com>
      Reviewed-by: default avatarJiewen Yao <Jiewen.yao@intel.com>
      Signed-off-by: default avatarMin Xu <min.m.xu@intel.com>
      a72d552f
  2. 19 May, 2022 11 commits
  3. 13 May, 2022 14 commits
  4. 11 May, 2022 11 commits
  5. 09 May, 2022 2 commits