mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
ept: set trusty eptp to 0 after destroy
set trusty eptp to 0 after destroy Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
parent
c0fbe48037
commit
5734525f17
@ -103,8 +103,10 @@ void destroy_ept(struct vm *vm)
|
||||
* - trusty is enabled. But not initialized yet.
|
||||
* Check vm->arch_vm.sworld_eptp.
|
||||
*/
|
||||
if (vm->sworld_control.sworld_enabled && vm->arch_vm.sworld_eptp)
|
||||
if (vm->sworld_control.sworld_enabled && vm->arch_vm.sworld_eptp) {
|
||||
free_ept_mem(HPA2HVA(vm->arch_vm.sworld_eptp));
|
||||
vm->arch_vm.sworld_eptp = 0;
|
||||
}
|
||||
}
|
||||
|
||||
uint64_t _gpa2hpa(struct vm *vm, uint64_t gpa, uint32_t *size, bool nworld)
|
||||
|
Loading…
Reference in New Issue
Block a user