Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lockbox #5609

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Lockbox #5609

wants to merge 3 commits into from

Conversation

xieyuanh
Copy link
Contributor

No description provided.

@xieyuanh xieyuanh changed the title Dev/yuanhao/lockbox Lockbox Apr 30, 2024
@xieyuanh xieyuanh force-pushed the dev/yuanhao/lockbox branch 5 times, most recently from 6ffe6e0 to 72efda4 Compare April 30, 2024 09:07
Copy link

mergify bot commented Apr 30, 2024

⚠️ The sha of the head commit of this PR conflicts with #5583. Mergify cannot evaluate rules on this PR. ⚠️

@@ -38,6 +38,7 @@
MmServicesTableLib
BaseLib
DebugLib
StandaloneMmDriverEntryPoint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a lib needs to depend on DriverEntryPoint?

#include <Protocol/LockBox.h>
#include <Guid/SmmLockBox.h>

extern BOOLEAN mLocked;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel "extern BOOLEAN mLocked" is not needed.

Copy link

mergify bot commented May 7, 2024

⚠️ The sha of the head commit of this PR conflicts with #5629. Mergify cannot evaluate rules on this PR. ⚠️

The LockBox Dependency DXE Driver is designed for use with standalone
mm where gBS are not accessible to indicates that LockBox API is ready
for use.

For DXE drivers use lockbox APIs via a communication mechanism
triggering an SMI, it's must to have the corresponding SMI handler
pre-installed for interrupt management. To ensure orderly operations
and proper notification, besides specified the guid in
the [Depex] section of the .inf file. The installation of smi handler,
along with the LockBox protocol marked by gEfiLockBoxProtocolGuid,
must be informed to the DXE driver. This protocol installation signifies
 to the DXE driver that the LockBox API is ready for use.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>

Signed-off-by: Yuanhao Xie <yuanhao.xie@intel.com>
The Lockbox Driver allows sensitive data to be securely stored in a
designated area, thus protected against unauthorized access.

This patch does not introduce any functional modifications.
It refactors the existing logic into a common component to facilitates
the integration of the Standalone MM Lockbox Driver in an upcoming patch

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>

Signed-off-by: Yuanhao Xie <yuanhao.xie@intel.com>
The Lockbox Driver allows sensitive data to be securely stored in a
designated area, thus protected against unauthorized access.

This patch adds a Standalone MM Lockbox Driver with main modifications:
1. Separating shared code between the Standalone MM driver and the
DXE MM Driver.
2. Utilizing services from the SMM Services Table (gSmst) as opposed to
 relying on Boot Services.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>

Signed-off-by: Yuanhao Xie <yuanhao.xie@intel.com>
Copy link

mergify bot commented May 9, 2024

⚠️ The sha of the head commit of this PR conflicts with #5629. Mergify cannot evaluate rules on this PR. ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants