acrn-hypervisor/hypervisor/include
Mingqiang Chi 229bf32eb5 hv:Refine destroy_secure_world API
-- add clear trusty memory flag
  In some cases such as UOS power off or UOS full reset,
  need to clear trusty memory,no need to clear memory such as
  UOS S3 or UOS system reset,then add a flag to distinguish it
  when destroy secure world.
-- Restore trusty memory to guest normal world.
-- Moved free trusty EPT inside destroy_secure_world
  In some cases such as UOS S3 or UOS system reset,
  only need to free trusty EPT, this patch move free
  trusty EPT inside destroy_secure_world.
  Because PD/PT are shared in both secure world's EPT
  and normal world's EPT,before freeing trusty EPT,
  it will memset all PDPTEs except trusty memory,
  then call 'free_ept_mem', it can only free trusty EPT,
  and does't affect shared normal world EPT.

v2-->v3:
    -- Used new mmu api ept_mr_add when restore trusty memory
       to SOS and normal world
    -- Dropped this patch "Removed reverted page tables for trusty memory"
       because map_mem will be removed in future
       It will have a patch, need to update this api(ept_mr_add),
       it will not create inverted page tables for trusty memory.

v1-->v2:
   -- free trusty ept
       still use free_ept_mem, not add a new api,but need to
       memset pdptes except trusty memory
   -- Removed reverted page tables for trusty memory.

Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
2018-08-10 10:17:09 +08:00
..
arch/x86 hv:Refine destroy_secure_world API 2018-08-10 10:17:09 +08:00
common hv: treewide: fix 'Variable should be declared static' 2018-08-10 10:15:36 +08:00
debug hv: treewide: fix 'Prototype and definition name mismatch' 2018-08-06 16:04:40 +08:00
dm/vpci HV: Adding hostbridge vdev device support for partition hypervisor 2018-08-10 10:09:00 +08:00
lib hv: treewide: fix 'Prototype and definition name mismatch' 2018-08-06 16:04:40 +08:00
public HV: trusty: new hypercall to save/restore context of secure world 2018-08-09 15:09:15 +08:00
hv_debug.h hv:Reshuffle console/uart code 2018-07-30 16:25:16 +08:00
hv_lib.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
hypervisor.h hv: mmu: revisit mmu modify page table attributes 2018-07-19 11:11:32 +08:00