Skip to content

Commit fe51acf

Browse files
mingqiangchilijinxia
authored andcommitted
Revert "[REVERT-ME]:handle discontinuous hpa for trusty"
The formal solution has merged,revert this patch. This reverts commit a9d04cc. Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 63ef123 commit fe51acf

File tree

4 files changed

+0
-243
lines changed

4 files changed

+0
-243
lines changed

hypervisor/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ C_SRCS += arch/x86/vmexit.c
133133
C_SRCS += arch/x86/vmx.c
134134
C_SRCS += arch/x86/assign.c
135135
C_SRCS += arch/x86/trusty.c
136-
C_SRCS += arch/x86/trusty2.c
137136
C_SRCS += arch/x86/cpu_state_tbl.c
138137
C_SRCS += arch/x86/mtrr.c
139138
C_SRCS += arch/x86/pm.c

hypervisor/arch/x86/trusty.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ static struct trusty_key_info g_key_info = {
4949
exec_vmwrite32(SEG_NAME##_ATTR, seg.attr); \
5050
}
5151

52-
#ifndef WORKAROUND_FOR_TRUSTY_4G_MEM
53-
5452
/**
5553
* @defgroup trusty_apis Trusty APIs
5654
*
@@ -204,7 +202,6 @@ void destroy_secure_world(struct vm *vm)
204202
IA32E_EPT_WB));
205203

206204
}
207-
#endif
208205

209206
static void save_world_ctx(struct vcpu *vcpu, struct ext_context *ext_ctx)
210207
{

hypervisor/arch/x86/trusty2.c

Lines changed: 0 additions & 217 deletions
This file was deleted.

hypervisor/include/arch/x86/trusty.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
#ifndef TRUSTY_H_
88
#define TRUSTY_H_
99

10-
/* This is a temp solution for 4GB memory */
11-
#define WORKAROUND_FOR_TRUSTY_4G_MEM
12-
1310
#define BOOTLOADER_SEED_MAX_ENTRIES 10U
14-
1511
#define RPMB_MAX_PARTITION_NUMBER 6
1612
#define MMC_PROD_NAME_WITH_PSN_LEN 15
1713
#define BUP_MKHI_BOOTLOADER_SEED_LEN 64U
@@ -94,23 +90,6 @@ struct trusty_key_info {
9490
char pad2;
9591
};
9692

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
11493
struct secure_world_memory {
11594
/* The secure world base address of GPA in SOS */
11695
uint64_t base_gpa;
@@ -119,7 +98,6 @@ struct secure_world_memory {
11998
/* Secure world runtime memory size */
12099
uint64_t length;
121100
};
122-
#endif
123101

124102
struct secure_world_control {
125103
/* Whether secure world is enabled for current VM */

0 commit comments

Comments
 (0)