Commit [f6177c] Maximize Restore History

OvmfPkg: AcpiS3SaveDxe: do not load if S3 is unsupported/disabled in qemu

The previous patch ensures that the LockBox is protected during DXE (but
the OS can still drop it) if S3 is unsupported or disabled. However, S3
related drivers not only save data in the lockbox, they allocate objects
with Reserved and AcpiNVS memory types too, which the OS can't (must not)
release. This is a waste when S3 is unsupported or disabled.

In OVMF a good "choke point" for these drivers is the entry point of
AcpiS3SaveDxe. The messages of the following commits are relevant to the
data and control flow:

- SVN r15290 (git commit 8f5ca05b)
- SVN r15305 (git commit 5a217a06)
- SVN r15306 (git commit d4ba06df)

Prevent AcpiS3SaveDxe from loading when S3 is unsupported or disabled.
This should keep away (most of the) dependent drivers too.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <>
Tested-by: Matt Fleming <>
Reviewed-by: Jordan Justen <>

git-svn-id: svn:// 6f19259b-4bc3-4df7-8a09-765794883524

Laszlo Ersek Laszlo Ersek 2014-03-31

jljusten jljusten 2014-03-31

changed AcpiS3SaveDxe
changed AcpiS3SaveDxe/AcpiS3Save.c
changed AcpiS3SaveDxe/AcpiS3SaveDxe.inf
AcpiS3SaveDxe/AcpiS3Save.c Diff Switch to side-by-side view
AcpiS3SaveDxe/AcpiS3SaveDxe.inf Diff Switch to side-by-side view