pspvar.h (ff28563e) | pspvar.h (52c926a1) |
---|---|
1/* $OpenBSD: pspvar.h,v 1.4 2024/10/29 21:16:36 bluhm Exp $ */ | 1/* $OpenBSD: pspvar.h,v 1.5 2024/10/30 17:51:12 bluhm Exp $ */ |
2 3/* 4 * Copyright (c) 2023, 2024 Hans-Joerg Hoexer <hshoexer@genua.de> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * --- 63 unchanged lines hidden (view full) --- 73#define PSP_SUCCESS 0x0000 74#define PSP_INVALID_ADDRESS 0x0009 75 76/* Selection of PSP commands of the SEV API Version 0.24 */ 77 78#define PSP_CMD_INIT 0x1 79#define PSP_CMD_PLATFORMSTATUS 0x4 80#define PSP_CMD_DF_FLUSH 0xa | 2 3/* 4 * Copyright (c) 2023, 2024 Hans-Joerg Hoexer <hshoexer@genua.de> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * --- 63 unchanged lines hidden (view full) --- 73#define PSP_SUCCESS 0x0000 74#define PSP_INVALID_ADDRESS 0x0009 75 76/* Selection of PSP commands of the SEV API Version 0.24 */ 77 78#define PSP_CMD_INIT 0x1 79#define PSP_CMD_PLATFORMSTATUS 0x4 80#define PSP_CMD_DF_FLUSH 0xa |
81#define PSP_CMD_DOWNLOADFIRMWARE 0xb |
|
81#define PSP_CMD_DECOMMISSION 0x20 82#define PSP_CMD_ACTIVATE 0x21 83#define PSP_CMD_DEACTIVATE 0x22 84#define PSP_CMD_GUESTSTATUS 0x23 85#define PSP_CMD_LAUNCH_START 0x30 86#define PSP_CMD_LAUNCH_UPDATE_DATA 0x31 87#define PSP_CMD_LAUNCH_MEASURE 0x33 88#define PSP_CMD_LAUNCH_FINISH 0x35 --- 120 unchanged lines hidden (view full) --- 209struct psp_init { 210 /* Output parameters from PSP_CMD_INIT */ 211 uint32_t enable_es; 212 uint32_t reserved; 213 uint64_t tmr_paddr; 214 uint32_t tmr_length; 215} __packed; 216 | 82#define PSP_CMD_DECOMMISSION 0x20 83#define PSP_CMD_ACTIVATE 0x21 84#define PSP_CMD_DEACTIVATE 0x22 85#define PSP_CMD_GUESTSTATUS 0x23 86#define PSP_CMD_LAUNCH_START 0x30 87#define PSP_CMD_LAUNCH_UPDATE_DATA 0x31 88#define PSP_CMD_LAUNCH_MEASURE 0x33 89#define PSP_CMD_LAUNCH_FINISH 0x35 --- 120 unchanged lines hidden (view full) --- 210struct psp_init { 211 /* Output parameters from PSP_CMD_INIT */ 212 uint32_t enable_es; 213 uint32_t reserved; 214 uint64_t tmr_paddr; 215 uint32_t tmr_length; 216} __packed; 217 |
218struct psp_downloadfirmware { 219 /* Input parameters for PSP_CMD_DOWNLOADFIRMWARE */ 220 uint64_t fw_paddr; 221 uint32_t fw_len; 222} __packed; |
|
217 218struct psp_guest_shutdown { 219 /* Input parameter for PSP_CMD_GUEST_SHUTDOWN */ 220 uint32_t handle; 221} __packed; 222 223/* Selection of PSP commands of the SEV-SNP ABI Version 1.55 */ 224 --- 53 unchanged lines hidden --- | 223 224struct psp_guest_shutdown { 225 /* Input parameter for PSP_CMD_GUEST_SHUTDOWN */ 226 uint32_t handle; 227} __packed; 228 229/* Selection of PSP commands of the SEV-SNP ABI Version 1.55 */ 230 --- 53 unchanged lines hidden --- |