summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2018-01-30 15:34:08 +0100
committerLaszlo Ersek <lersek@redhat.com>2018-01-31 12:38:26 +0100
commit8d4d55b15b5887d6906c6d2c434687e5212ed5a7 (patch)
treeb86fd88b83599ec50bfa104b6c645b2c80e614ac /BaseTools/Source/Python
parente75ee97224e5a101d282356fc42c06a6422536a5 (diff)
downloadedk2-8d4d55b15b5887d6906c6d2c434687e5212ed5a7.tar.gz
edk2-8d4d55b15b5887d6906c6d2c434687e5212ed5a7.tar.bz2
edk2-8d4d55b15b5887d6906c6d2c434687e5212ed5a7.zip
UefiCpuPkg/PiSmmCpuDxeSmm: eliminate conditional jump in IA32 SmmStartup()
SMM emulation under both KVM and QEMU (TCG) crashes the guest when the "jz" branch, added in commit d4d87596c11d ("UefiCpuPkg/PiSmmCpuDxeSmm: Enable NXE if it's supported", 2018-01-18), is taken. Rework the propagation of CPUID.80000001H:EDX.NX [bit 20] to IA32_EFER.NXE [bit 11] so that no code is executed conditionally. Cc: Eric Dong <eric.dong@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Ref: http://mid.mail-archive.com/d6fff558-6c4f-9ca6-74a7-e7cd9d007276@redhat.com Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> [lersek@redhat.com: XD -> NX code comment updates from Ray] Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> [lersek@redhat.com: mark QEMU/TCG as well in the commit message]
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions