The save_state method is invoked when SMM mode is entered before any cpu state has been modified. The method should save the current cpu state to the SMRAM state save map.
The restore_state method is invoked during execution of the rsm instruction. The method should restore the cpu state from the SMRAM state save map.
The x86_smm_state
interface implemented by
the cpu can be used to facilitate cpu state changes and
SMRAM access.
This interface is internal and may change without notice.
SIM_INTERFACE(x86_smm) { void (*save_state)(conf_object_t *obj, conf_object_t *cpu); void (*restore_state)(conf_object_t *obj, conf_object_t *cpu); }; #define X86_SMM_INTERFACE "x86_smm"