Hello
According to "IA32 SDM, page 1428, 4-330 Vol. 2B, RSM?Resume from System 
Management Mode", I do not find word say: 64bit mode is invalid.
Would you please point out where you find "RSM is invalid in 64-bit mode "?

===========================
Operation
ReturnFromSMM;
IF (IA-32e mode supported) or (CPUID DisplayFamily_DisplayModel = 06H_0CH )
THEN
ProcessorState ← Restore(SMMDump(IA-32e SMM STATE MAP));
Else
ProcessorState ← Restore(SMMDump(Non-32-Bit-Mode SMM STATE MAP));
FI

64-Bit Mode Exceptions
Same exceptions as in protected mode.
===========================


-----Original Message-----
From: edk2-devel [mailto:[email protected]] On Behalf Of Paolo 
Bonzini
Sent: Friday, October 16, 2015 3:19 PM
To: Fan, Jeff; Laszlo Ersek; [email protected]
Cc: Kinney, Michael D
Subject: Re: [edk2] [PATCH v3 03/52] UefiCpuPkg: PiSmmCpuDxeSmm: do not execute 
RSM from 64-bit mode



On 15/10/2015 03:31, Fan, Jeff wrote:
> Ersek & Bonzini,
> 
> From SDM 34.5.2, SMI Handler Operating Mode Switching.
> "Any required change to operating mode is performed by the RSM 
> instruction; there is no need for the SMI handler to change modes explicitly 
> prior to executing RSM."
> 
> So, I don't think we need to go back to 32-bit PM before RSM.

The instruction set reference, however, says that RSM is invalid in 64-bit mode.

Paolo
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to