/* SPDX-License-Identifier: GPL-2.0 */ /* * AMD SEV header common between the guest and the hypervisor. * * Author: Brijesh Singh <brijesh.singh@amd.com>
*/
/* * SNP Page State Change NAE event * The VMGEXIT_PSC_MAX_ENTRY determines the size of the PSC structure, which * is a local stack variable in set_pages_state(). Do not increase this value * without evaluating the impact to stack usage. * * Use VMGEXIT_PSC_MAX_COUNT in cases where the actual GHCB-defined max value * is needed, such as when processing GHCB requests on the hypervisor side.
*/ #define VMGEXIT_PSC_MAX_ENTRY 64 #define VMGEXIT_PSC_MAX_COUNT 253
/* * GHCB-defined return codes that are communicated back to the guest via * SW_EXITINFO1.
*/ #define GHCB_HV_RESP_NO_ACTION 0 #define GHCB_HV_RESP_ISSUE_EXCEPTION 1 #define GHCB_HV_RESP_MALFORMED_INPUT 2
/* * GHCB-defined sub-error codes for malformed input (see above) that are * communicated back to the guest via SW_EXITINFO2[31:0].
*/ #define GHCB_ERR_NOT_REGISTERED 1 #define GHCB_ERR_INVALID_USAGE 2 #define GHCB_ERR_INVALID_SCRATCH_AREA 3 #define GHCB_ERR_MISSING_INPUT 4 #define GHCB_ERR_INVALID_INPUT 5 #define GHCB_ERR_INVALID_EVENT 6
struct sev_config {
__u64 debug : 1,
/* * Indicates when the per-CPU GHCB has been created and registered * and thus can be used by the BSP instead of the early boot GHCB. * * For APs, the per-CPU GHCB is created before they are started * and registered upon startup, so this flag can be used globally * for the BSP and APs.
*/
ghcbs_initialized : 1,
/* * Indicates when the per-CPU SVSM CA is to be used instead of the * boot SVSM CA. * * For APs, the per-CPU SVSM CA is created as part of the AP * bringup, so this flag can be used globally for the BSP and APs.
*/
use_cas : 1,
__reserved : 61;
};
externstruct sev_config sev_cfg;
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.