hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/include/linux/psp-sev.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * AMD Secure Encrypted Virtualization (SEV) driver interface
34 *
....@@ -5,12 +6,7 @@
56 *
67 * Author: Brijesh Singh <brijesh.singh@amd.com>
78 *
8
- * SEV spec 0.14 is available at:
9
- * http://support.amd.com/TechDocs/55766_SEV-KM API_Specification.pdf
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License version 2 as
13
- * published by the Free Software Foundation.
9
+ * SEV API spec is available at https://developer.amd.com/sev
1410 */
1511
1612 #ifndef __PSP_SEV_H__
....@@ -103,6 +99,8 @@
10399 u64 tmr_address; /* In */
104100 u32 tmr_len; /* In */
105101 } __packed;
102
+
103
+#define SEV_INIT_FLAGS_SEV_ES 0x01
106104
107105 /**
108106 * struct sev_data_pek_csr - PEK_CSR command parameters
....@@ -599,7 +597,7 @@
599597 */
600598 int sev_guest_decommission(struct sev_data_decommission *data, int *error);
601599
602
-void *psp_copy_user_blob(u64 __user uaddr, u32 len);
600
+void *psp_copy_user_blob(u64 uaddr, u32 len);
603601
604602 #else /* !CONFIG_CRYPTO_DEV_SP_PSP */
605603