TianoCore EDK2 master
Loading...
Searching...
No Matches
SmiFeatures.h File Reference

Go to the source code of this file.

Functions

BOOLEAN NegotiateSmiFeatures (VOID)
 
VOID SaveSmiFeatures (VOID)
 

Detailed Description

Negotiate SMI features with QEMU, and configure UefiCpuPkg/PiSmmCpuDxeSmm accordingly.

Copyright (C) 2016-2017, Red Hat, Inc.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SmiFeatures.h.

Function Documentation

◆ NegotiateSmiFeatures()

BOOLEAN NegotiateSmiFeatures ( VOID  )

Negotiate SMI features with QEMU.

Return values
FALSEIf SMI feature negotiation is not supported by QEMU. This is not an error, it just means that SaveSmiFeatures() should not be called.
TRUESMI feature negotiation is supported, and it has completed successfully as well. (Failure to negotiate is a fatal error and the function never returns in that case.)

Definition at line 76 of file SmiFeatures.c.

◆ SaveSmiFeatures()

VOID SaveSmiFeatures ( VOID  )

Append a boot script fragment that will re-select the previously negotiated SMI features during S3 resume.

Definition at line 311 of file SmiFeatures.c.