TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
union | GHCB_EXIT_INFO |
union | GHCB_EVENT_INJECTION |
struct | SNP_PAGE_STATE_ENTRY |
struct | SNP_PAGE_STATE_HEADER |
struct | SNP_PAGE_STATE_CHANGE_INFO |
struct | GHCB_APIC_IDS |
union | SEV_ES_SEGMENT_REGISTER_ATTRIBUTES |
struct | SEV_ES_SEGMENT_REGISTER |
struct | SEV_ES_SAVE_AREA |
Typedefs | |
struct { | |
UINT8 Reserved1 [203] | |
UINT8 Cpl | |
UINT8 Reserved8 [300] | |
UINT64 Rax | |
UINT8 Reserved4 [264] | |
UINT64 Rcx | |
UINT64 Rdx | |
UINT64 Rbx | |
UINT8 Reserved5 [112] | |
UINT64 SwExitCode | |
UINT64 SwExitInfo1 | |
UINT64 SwExitInfo2 | |
UINT64 SwScratch | |
UINT8 Reserved6 [56] | |
UINT64 XCr0 | |
UINT8 ValidBitmap [16] | |
UINT64 X87StateGpa | |
UINT8 Reserved7 [1016] | |
} | GHCB_SAVE_AREA |
struct { | |
GHCB_SAVE_AREA SaveArea | |
UINT8 SharedBuffer [2032] | |
UINT8 Reserved1 [10] | |
UINT16 ProtocolVersion | |
UINT32 GhcbUsage | |
} | GHCB |
Guest-Hypervisor Communication Block (GHCB) Definition.
Provides data types allowing an SEV-ES guest to interact with the hypervisor using the GHCB protocol.
Copyright (C) 2020 - 2024, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Ghcb.h.
#define GHCB_HV_FEATURES_SNP_AP_CREATE (GHCB_HV_FEATURES_SNP | BIT1) |
#define GHCB_HV_FEATURES_SNP_RESTRICTED_INJECTION (GHCB_HV_FEATURES_SNP_AP_CREATE | BIT2) |
#define GHCB_HV_FEATURES_SNP_RESTRICTED_INJECTION_TIMER (GHCB_HV_FEATURES_SNP_RESTRICTED_INJECTION | BIT3) |
#define GHCB_SAVE_AREA_QWORD_OFFSET | ( | RegisterField | ) | (OFFSET_OF (GHCB, SaveArea.RegisterField) / sizeof (UINT64)) |
#define IOIO_DATA_BYTES | ( | x | ) | (((x) & IOIO_DATA_MASK) >> IOIO_DATA_OFFSET) |
#define SNP_PAGE_STATE_MAX_ENTRY ((sizeof (((GHCB *)0)->SharedBuffer) - sizeof (SNP_PAGE_STATE_HEADER)) / sizeof (SNP_PAGE_STATE_ENTRY)) |