https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
57 lines
1.3 KiB
C
57 lines
1.3 KiB
C
/** @file
|
|
MSR Definitions.
|
|
|
|
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
|
|
are provided for MSRs that contain one or more bit fields. If the MSR value
|
|
returned is a single 32-bit or 64-bit value, then a data structure is not
|
|
provided for that MSR.
|
|
|
|
Copyright (c) 2017, Advanced Micro Devices. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
@par Specification Reference:
|
|
AMD64 Architecture Programming Manaul volume 2, March 2017, Sections 15.34
|
|
|
|
**/
|
|
|
|
#ifndef __FAM17_MSR_H__
|
|
#define __FAM17_MSR_H__
|
|
|
|
/**
|
|
Secure Encrypted Virtualization (SEV) status register
|
|
|
|
**/
|
|
#define MSR_SEV_STATUS 0xc0010131
|
|
|
|
/**
|
|
MSR information returned for #MSR_SEV_STATUS
|
|
**/
|
|
typedef union {
|
|
///
|
|
/// Individual bit fields
|
|
///
|
|
struct {
|
|
///
|
|
/// [Bit 0] Secure Encrypted Virtualization (Sev) is enabled
|
|
///
|
|
UINT32 SevBit:1;
|
|
|
|
///
|
|
/// [Bit 1] Secure Encrypted Virtualization Encrypted State (SevEs) is enabled
|
|
///
|
|
UINT32 SevEsBit:1;
|
|
|
|
UINT32 Reserved:30;
|
|
} Bits;
|
|
///
|
|
/// All bit fields as a 32-bit value
|
|
///
|
|
UINT32 Uint32;
|
|
///
|
|
/// All bit fields as a 64-bit value
|
|
///
|
|
UINT64 Uint64;
|
|
} MSR_SEV_STATUS_REGISTER;
|
|
|
|
#endif
|