diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-11-10 13:40:12 +0800 |
---|---|---|
committer | Jeff Fan <jeff.fan@intel.com> | 2016-11-15 09:44:53 +0800 |
commit | 4a0f88dd6458528fc24ad320a05105150c9fb3bb (patch) | |
tree | d9ec40a0673565249c869124d65fd1cae0c6c502 /UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.uni | |
parent | c37dcee6d8c24cff4c50fa5dd139e5a26678eb62 (diff) | |
download | edk2-platforms-4a0f88dd6458528fc24ad320a05105150c9fb3bb.tar.xz |
UefiCpuPkg/PiSmmCpuDxeSmm: Put AP into safe hlt-loop code on S3 path
On S3 path, we will wake up APs to restore CPU context in PiSmmCpuDxeSmm
driver. However, we place AP in hlt-loop under 1MB space borrowed after CPU
restoring CPU contexts.
In case, one NMI or SMI happens, APs may exit from hlt state and execute the
instruction after HLT instruction. But the code under 1MB is no longer safe at
that time.
This fix is to allocate one ACPI NVS range to place the AP hlt-loop code. When
CPU finished restoration CPU contexts, AP will execute in this ACPI NVS range.
https://bugzilla.tianocore.org/show_bug.cgi?id=216
v2:
1. Make stack alignment per Laszlo's comment.
2. Trim whitespace at end of end.
3. Update year mark in file header.
Reported-by: Laszlo Ersek <lersek@redhat.com>
Analyzed-by: Paolo Bonzini <pbonzini@redhat.com>
Analyzed-by: Laszlo Ersek <lersek@redhat.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.uni')
0 files changed, 0 insertions, 0 deletions