- 07 Sep, 2022 2 commits
-
-
dann frazier authored
-
dann frazier authored
====================================================================== ERROR: test_aavmf_ms_secure_boot_unsigned (__main__.BootToShellTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.IxhnlS/build.72U/src/debian/tests/shell.py", line 174, in test_aavmf_ms_secure_boot_unsigned iso = GrubShellBootableIsoImage('AA64', use_signed=False) TypeError: GrubShellBootableIsoImage.__init__() got an unexpected keyword argument 'use_signed' Fix by porting it to the new GrubShellBootableIsoImage interface.
-
- 06 Sep, 2022 6 commits
-
-
dann frazier authored
-
dann frazier authored
Adds a new UEFI module, SignedBinary, that well, signs binaries.
-
dann frazier authored
-
dann frazier authored
We want to be able to add tests for snakeoil-signed artifacts. Adapting the GrubShellBootableIsoImage interface to do that signing would be ugly. Instead, let's move the binary selection code into the tests themselves. This also removes some obviously distro-specific logic out of the libraries.
-
dann frazier authored
It would probably be better to prevent the BootOrder variable from getting reset in the first place, but I'm not sure what that is.
-
dann frazier authored
This fixes a regression introduced with the transition to edk2-vars-generator.py. LP: #1986692.
-
- 10 Jun, 2022 2 commits
-
-
dann frazier authored
-
dann frazier authored
-
- 06 Jun, 2022 2 commits
-
-
dann frazier authored
-
dann frazier authored
Overrides microarchitecture ABI for x64 to retain compatibility with generic x86-64 platforms. LP: #1976267.
-
- 03 Jun, 2022 4 commits
-
-
dann frazier authored
-
dann frazier authored
* Drop patches merged upstream: - d/p/0001-OvmfPkg-OvmfPkgX64-Use-different-CcProbeLib-when-SMM.patch
-
dann frazier authored
-
dann frazier authored
-
- 26 May, 2022 1 commit
-
-
Theo Jehl authored
This fixes a compilation issue. 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> Signed-off-by:
Jehl Theo <theojehl76@gmail.com> Reviewed-by:
Jiewen Yao <jiewen.yao@intel.com> Reviewed-by:
Rebecca Cran <quic_rcran@quicinc.com> Tested-by:
Rebecca Cran <quic_rcran@quicinc.com>
-
- 25 May, 2022 2 commits
-
-
Gerd Hoffmann authored
kvm FSB clock is 1GHz, not 100 MHz. Timings are off by factor 10. Fix all affected build configurations. Not changed: Microvm and Cloudhw (they have already have the correct value), and Xen (has no fixed frequency, the PCD is configured at runtime by platform initialization code). Fixes: c37cbc03 ("OvmfPkg: Switch timer in build time for OvmfPkg") Reported-by:
Laszlo Ersek <lersek@redhat.com> Signed-off-by:
Gerd Hoffmann <kraxel@redhat.com> Reviewed-by:
Jiewen Yao <jiewen.yao@intel.com>
-
Isaku Yamahata authored
In TDX, Application Processor busy-loops on Mailbox for OS to issue MpProtectedModeWakeupCommandWakeup command to UEFI. As the AP acking to it, it clears the command member according to ACPI spec 6.4, 5.2.12.19 Multiprocessor Wakeup Structure: "The application processor need clear the command to Noop(0) as the acknowledgement that the command is received." However, AsmRelocateApMailBoxLoop wrongly clears WakeupVector. Correctly clear command instead of WakeupVector. Without this patch, TD guest kernel fails to boot APs. Fixes: fae5c146 ("OvmfPkg: Add TdxDxe driver") Cc: Min Xu <min.m.xu@intel.com> Signed-off-by:
Isaku Yamahata <isaku.yamahata@intel.com> Reviewed-by:
Jiewen Yao <jiewen.yao@intel.com> Reviewed-by:
Min Xu <min.m.xu@intel.com>
-
- 20 May, 2022 2 commits
-
-
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:
Tom Lendacky <thomas.lendacky@amd.com> Reviewed-by:
Ard Biesheuvel <ardb@kernel.org>
-
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:
dann frazier <dann.frazier@canonical.com> Reviewed-by:
Jiewen Yao <Jiewen.yao@intel.com> Signed-off-by:
Min Xu <min.m.xu@intel.com>
-
- 19 May, 2022 11 commits
-
-
Michael Kubacki authored
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3479 Adds an instance of VariableFlashInfoLib to the platform build as it is a new library class introduced in MdeModulePkg. Cc: Guo Dong <guo.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Maurice Ma <maurice.ma@intel.com> Cc: Benjamin You <benjamin.you@intel.com> Cc: Sean Rhodes <sean@starlabs.systems> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Acked-by:
Ard Biesheuvel <ardb@kernel.org> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by:
Guo Dong <guo.dong@intel.com>
-
Michael Kubacki authored
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3479 Adds an instance of VariableFlashInfoLib to the platform build as it is a new library class introduced in MdeModulePkg. Cc: Anthony Perard <anthony.perard@citrix.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Erdem Aktas <erdemaktas@google.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: James Bottomley <jejb@linux.ibm.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Julien Grall <julien@xen.org> Cc: Min Xu <min.m.xu@intel.com> Cc: Peter Grehan <grehan@freebsd.org> Cc: Rebecca Cran <rebecca@bsdio.com> Cc: Sebastien Boeuf <sebastien.boeuf@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Acked-by:
Ard Biesheuvel <ardb@kernel.org> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by:
Rebecca Cran <rebecca@bsdio.com> Reviewed-by:
Jiewen Yao <Jiewen.yao@intel.com>
-
Michael Kubacki authored
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3479 Adds an instance of VariableFlashInfoLib to the platform build as it is a new library class introduced in MdeModulePkg. Cc: Andrew Fish <afish@apple.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Abner Chang <abner.chang@hpe.com> Cc: Nickle Wang <nickle.wang@hpe.com> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Acked-by:
Ard Biesheuvel <ardb@kernel.org> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by:
Abner Chang <abner.chang@hpe.com>
-
Michael Kubacki authored
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3479 Adds an instance of VariableFlashInfoLib to the platform build as it is a new library class introduced in MdeModulePkg. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Leif Lindholm <quic_llindhol@quicinc.com> Cc: Sami Mujawar <sami.mujawar@arm.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Julien Grall <julien@xen.org> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Acked-by:
Ard Biesheuvel <ardb@kernel.org> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by:
Sami Mujawar <sami.mujawar@arm.com>
-
Michael Kubacki authored
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3479 Adds support to the UEFI variable fault tolerant write (FTW) drivers to receive FTW base and size information dynamically via the Variable Flash Information library. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Acked-by:
Ard Biesheuvel <ardb@kernel.org> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by:
Sami Mujawar <sami.mujawar@arm.com>
-
Michael Kubacki authored
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3479 Updates VariableRuntimeDxe, VariableSmm, and VariableStandaloneMm to acquire variable flash information from the Variable Flash Information library. Note: This introduces a dependency on VariableFlashInfoLib in these modules. Therefore, a platform building the variable modules must specify an instance of VariableFlashInfoLib in their platform build. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Acked-by:
Ard Biesheuvel <ardb@kernel.org> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by:
Sami Mujawar <sami.mujawar@arm.com>
-
Michael Kubacki authored
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3479 Adds a new library class VariableFlashInfoLib that abstracts access to variable flash information. The instance provided first attempts to retrieve information from the Variable Flash Info HOB. If that HOB is not present, it falls back to the PCDs defined in MdeModulePkg. This fall back behavior provides backward compatibility for platforms that only provide PCDs but also allows platforms that need to dynamically provide the information using the Variable Flash Info HOB to do so at runtime. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Acked-by:
Ard Biesheuvel <ardb@kernel.org> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by:
Sami Mujawar <sami.mujawar@arm.com>
-
Michael Kubacki authored
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3479 Adds a new GUID that is used to identify a HOB that passes variable flash information to UEFI variable drivers in HOB consumption phases such as DXE, Traditional MM, and Standalone MM. This information was previously passed directly with PCDs such as EfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase and gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize. However, the Standalone MM variable driver instance does not have direct access to the PCD database. Therefore, this HOB will first be considered as the source for variable flash information and if platforms do not produce the HOB, reading the information from the PCDs directly will be a backup to provide backward compatibility. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Acked-by:
Ard Biesheuvel <ardb@kernel.org> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by:
Sami Mujawar <sami.mujawar@arm.com>
-
Michael Kubacki authored
Appends the word list to reduce the number of errors encountered by individual packages. Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn>
-
Michael Kubacki authored
Sets "allowCompoundWords" to "true" to reduce the number of compound word issues encountered in the future. Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn>
-
Michael Kubacki authored
The v5.21.0 update introduced a number of new issues that might impact stable tag integration so this fixes the version to the previous release. Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by:
Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by:
Liming Gao <gaoliming@byosoft.com.cn> This value can be revisited in the future to update the
-
- 17 May, 2022 2 commits
-
-
dann frazier authored
-
dann frazier authored
* ovmf: Fix boot hang with SMM enabled: - d/p/0001-OvmfPkg-OvmfPkgX64-Use-different-CcProbeLib-when-SMM.patch
-
- 16 May, 2022 3 commits
-
-
dann frazier authored
* Drop patches merged upstream: - d/p/0001-MdeModulePkg-NvmExpressDxe-fix-check-for-Cap.Css.patch - d/p/0002-MdeModulePkg-NvmExpressPei-fix-check-for-NVM-command.patch
-
dann frazier authored
-
dann frazier authored
-
- 13 May, 2022 3 commits
-
-
Rebecca Cran authored
RVCT is obsolete and no longer used. Remove support for it. Signed-off-by:
Rebecca Cran <quic_rcran@quicinc.com> Reviewed-by:
Ard Biesheuvel <ardb@kernel.org>
-
Rebecca Cran authored
RVCT is obsolete and no longer used. Remove support for it. Signed-off-by:
Rebecca Cran <quic_rcran@quicinc.com> Reviewed-by:
Ard Biesheuvel <ardb@kernel.org>
-
Rebecca Cran authored
RVCT is obsolete and no longer used. Remove support for it. Signed-off-by:
Rebecca Cran <quic_rcran@quicinc.com> Reviewed-by:
Ard Biesheuvel <ardb@kernel.org>
-