add data structure in vm for enable trusty feature

add key info structure
add sworld_eptp in vm structure, and rename ept->nworld_eptp
add secure world control structure

Change-Id:
Tracked-On:220921
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
Mingqiang Chi
2018-03-05 15:09:30 +08:00
committed by Jack Ren
parent b4580d69b8
commit 78649c4a52
9 changed files with 166 additions and 19 deletions

View File

@@ -63,6 +63,9 @@
#define REQUEST_READ 0
#define REQUEST_WRITE 1
/* Generic VM flags from guest OS */
#define SECURE_WORLD_ENABLED (1<<0) /* Whether secure world is enabled */
/**
* @brief Hypercall
*
@@ -148,11 +151,13 @@ struct acrn_create_vm {
/** the GUID of this VM */
uint8_t GUID[16];
/** whether Secure World is enabled for this VM */
uint8_t secure_world_enabled;
/* VM flag bits from Guest OS, now used
* SECURE_WORLD_ENABLED (1<<0)
*/
uint64_t vm_flag;
/** Reserved for future use*/
uint8_t reserved[31];
uint8_t reserved[24];
} __aligned(8);
/**