File tree Expand file tree Collapse file tree 4 files changed +0
-243
lines changed Expand file tree Collapse file tree 4 files changed +0
-243
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,6 @@ C_SRCS += arch/x86/vmexit.c
133
133
C_SRCS += arch/x86/vmx.c
134
134
C_SRCS += arch/x86/assign.c
135
135
C_SRCS += arch/x86/trusty.c
136
- C_SRCS += arch/x86/trusty2.c
137
136
C_SRCS += arch/x86/cpu_state_tbl.c
138
137
C_SRCS += arch/x86/mtrr.c
139
138
C_SRCS += arch/x86/pm.c
Original file line number Diff line number Diff line change @@ -49,8 +49,6 @@ static struct trusty_key_info g_key_info = {
49
49
exec_vmwrite32(SEG_NAME##_ATTR, seg.attr); \
50
50
}
51
51
52
- #ifndef WORKAROUND_FOR_TRUSTY_4G_MEM
53
-
54
52
/**
55
53
* @defgroup trusty_apis Trusty APIs
56
54
*
@@ -204,7 +202,6 @@ void destroy_secure_world(struct vm *vm)
204
202
IA32E_EPT_WB ));
205
203
206
204
}
207
- #endif
208
205
209
206
static void save_world_ctx (struct vcpu * vcpu , struct ext_context * ext_ctx )
210
207
{
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
#ifndef TRUSTY_H_
8
8
#define TRUSTY_H_
9
9
10
- /* This is a temp solution for 4GB memory */
11
- #define WORKAROUND_FOR_TRUSTY_4G_MEM
12
-
13
10
#define BOOTLOADER_SEED_MAX_ENTRIES 10U
14
-
15
11
#define RPMB_MAX_PARTITION_NUMBER 6
16
12
#define MMC_PROD_NAME_WITH_PSN_LEN 15
17
13
#define BUP_MKHI_BOOTLOADER_SEED_LEN 64U
@@ -94,23 +90,6 @@ struct trusty_key_info {
94
90
char pad2 ;
95
91
};
96
92
97
- #ifdef WORKAROUND_FOR_TRUSTY_4G_MEM
98
- void create_secure_world_ept (struct vm * vm , uint64_t gpa_orig ,
99
- uint64_t size , uint64_t gpa_rebased );
100
- struct secure_world_memory {
101
- /* The secure world base address of GPA for secure world*/
102
- uint64_t base_gpa ;
103
- /* The secure world base address of HPA */
104
- uint64_t base_hpa ;
105
- /* Secure world runtime memory size */
106
- uint64_t length ;
107
- /* The secure world base address of GPA in SOS */
108
- uint64_t gpa_sos ;
109
- /* The secure world base address of GPA in UOS for normal world */
110
- uint64_t gpa_uos ;
111
- };
112
-
113
- #else
114
93
struct secure_world_memory {
115
94
/* The secure world base address of GPA in SOS */
116
95
uint64_t base_gpa ;
@@ -119,7 +98,6 @@ struct secure_world_memory {
119
98
/* Secure world runtime memory size */
120
99
uint64_t length ;
121
100
};
122
- #endif
123
101
124
102
struct secure_world_control {
125
103
/* Whether secure world is enabled for current VM */
You can’t perform that action at this time.
0 commit comments