[REVERT-ME]:handle discontinuous hpa for trusty

This is a temp solution to handle discontinuous hpa
when create/destroy secure world ept.

Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
Mingqiang Chi
2018-07-10 20:46:58 +08:00
committed by lijinxia
parent 5603afb2be
commit a9d04cc5ce
4 changed files with 249 additions and 0 deletions

View File

@@ -50,6 +50,8 @@ static struct key_info g_key_info = {
exec_vmwrite(VMX_GUEST_##SEG_NAME##_ATTR, seg.attr); \
}
#ifndef WORKAROUND_FOR_TRUSTY_4G_MEM
/**
* @defgroup trusty_apis Trusty APIs
*
@@ -209,6 +211,7 @@ void destroy_secure_world(struct vm *vm)
IA32E_EPT_WB));
}
#endif
static void save_world_ctx(struct run_context *context)
{