Reserve a small persistent SMRAM subregion for OPAL S3 unlock state, so the payload-provided OPAL secret can survive SMM handler reload on S3 resume. Expose the region base/size to SMM via smm_runtime and provide an accessor for SMM code. Clear the region on cold boot/reboot, but preserve it when waking from S3. TEST=tested with rest of patch train Change-Id: Ib1e92edb31c845367afe6185e5fa18ab1bc71108 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91414 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> |
||
|---|---|---|
| .. | ||
| amd | ||
| armltd | ||
| intel | ||
| power9 | ||
| qemu-power8 | ||
| qemu-x86 | ||
| via | ||
| x86 | ||
| Kconfig | ||
| Makefile.mk | ||