mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
Merge b837390933 into fb2ac429de
This commit is contained in:
commit
8bdc0452e7
4 changed files with 11 additions and 0 deletions
|
|
@ -83,6 +83,7 @@
|
|||
|
||||
[FeaturePcd]
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootSupported
|
||||
|
||||
[Depex]
|
||||
TRUE
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@
|
|||
|
||||
[FeaturePcd]
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootSupported
|
||||
|
||||
[Depex]
|
||||
TRUE
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@
|
|||
|
||||
[FeaturePcd]
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootSupported
|
||||
|
||||
[Depex]
|
||||
TRUE
|
||||
|
|
|
|||
|
|
@ -284,6 +284,14 @@ QemuFlashInitialize (
|
|||
if (!QemuFlashDetected ()) {
|
||||
ASSERT (!FeaturePcdGet (PcdSmmSmramRequire));
|
||||
return EFI_WRITE_PROTECTED;
|
||||
} else {
|
||||
if (!FeaturePcdGet (PcdSmmSmramRequire) && FeaturePcdGet (PcdSecureBootSupported)) {
|
||||
DEBUG ((DEBUG_ERROR, "ERROR: This VM configuration is not secure.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "When using secure boot and storing UEFI variables in pflash SMM mode\n"));
|
||||
DEBUG ((DEBUG_ERROR, "must be used to prevent unauthorized updates of secure boot variables.\n"));
|
||||
ASSERT (FeaturePcdGet (PcdSmmSmramRequire) || !FeaturePcdGet (PcdSecureBootSupported));
|
||||
CpuDeadLoop ();
|
||||
}
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue