diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2024-04-22 12:47:27 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-04-22 13:05:21 +0000 |
commit | ddc43e7a41fac5b1dc93b1d0bb1e71319acfba4e (patch) | |
tree | b24aa5a2ed02e410dfacf3bfb35f5faa6c6d8ac4 /OvmfPkg/VirtHstiDxe/VirtHstiDxe.inf | |
parent | 538b8944c1befbd5ed8b7723c52085242ff780b1 (diff) | |
download | edk2-ddc43e7a41fac5b1dc93b1d0bb1e71319acfba4e.tar.gz edk2-ddc43e7a41fac5b1dc93b1d0bb1e71319acfba4e.tar.bz2 edk2-ddc43e7a41fac5b1dc93b1d0bb1e71319acfba4e.zip |
OvmfPkg/VirtHstiDxe: add varstore flash check
Detects qemu config issue: vars pflash is not in secure mode (write
access restricted to smm). Applies to Q35 with SMM only.
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Konstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Diffstat (limited to 'OvmfPkg/VirtHstiDxe/VirtHstiDxe.inf')
-rw-r--r-- | OvmfPkg/VirtHstiDxe/VirtHstiDxe.inf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OvmfPkg/VirtHstiDxe/VirtHstiDxe.inf b/OvmfPkg/VirtHstiDxe/VirtHstiDxe.inf index 8c63ff6a89..b6bdd1f22e 100644 --- a/OvmfPkg/VirtHstiDxe/VirtHstiDxe.inf +++ b/OvmfPkg/VirtHstiDxe/VirtHstiDxe.inf @@ -22,6 +22,7 @@ VirtHstiDxe.c
QemuPC.c
QemuQ35.c
+ Flash.c
[Packages]
MdePkg/MdePkg.dec
@@ -46,5 +47,8 @@ [FeaturePcd]
gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire
+[Pcd]
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase
+
[Depex]
TRUE
|