mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
hv:add destroy Secure world API
This patch added API destroy_secure_world, which will do: -- clear trusty memory space -- restore memory to SOS ept mapping It will be called when VM is destroyed, furthermore, ept of Secure world will be destroyed as well. Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Reviewed-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -128,6 +128,7 @@ struct secure_world_control {
|
||||
|
||||
void switch_world(struct vcpu *vcpu, int next_world);
|
||||
bool initialize_trusty(struct vcpu *vcpu, uint64_t param);
|
||||
void destroy_secure_world(struct vm *vm);
|
||||
|
||||
#endif /* TRUSTY_H_ */
|
||||
|
||||
|
Reference in New Issue
Block a user