acrn-hypervisor/hypervisor/arch/x86
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
..
configs HV: config: add Kconfig and defconfigs for sbl & uefi 2018-06-08 17:21:13 +08:00
debug hv:Rename port/mmio read and write APIs 2018-08-02 14:03:38 +08:00
guest hv:Refine destroy_secure_world API 2018-08-10 10:17:09 +08:00
assign.c hv: treewide: fix 'Switch empty default has no comment' 2018-08-08 16:01:57 +08:00
cpu_primary.S hv: init: save boot context from bootloader/bios 2018-08-09 16:43:58 +08:00
cpu_save_boot_ctx.S hv: init: save boot context from bootloader/bios 2018-08-09 16:43:58 +08:00
cpu_state_tbl.c fix x86 dir integer violations 2018-07-25 15:29:34 +08:00
cpu.c hv: treewide: fix 'inline function should be declared static' 2018-08-10 10:16:04 +08:00
cpuid.c hv: treewide: fix 'Switch empty default has no comment' 2018-08-08 16:01:57 +08:00
ept.c hv:Refine destroy_secure_world API 2018-08-10 10:17:09 +08:00
gdt.c HV:treewide:fix value outside range of underlying type 2018-08-06 16:07:41 +08:00
idt.S HV: Refine 'hv_main()' function usage 2018-08-06 10:34:43 +08:00
io.c HV: instr_emul: Rearrange logic of instr_emul* 2018-08-07 12:09:22 +08:00
ioapic.c hv: treewide: fix 'Variable should be declared static' 2018-08-10 10:15:36 +08:00
irq.c HV: Rename functions, variables starting with "_" 2018-08-03 12:49:01 +08:00
Kconfig HV: Add Partitioning mode option for ACRN 2018-08-02 12:58:09 +08:00
lapic.c hv: treewide: fix 'inline function should be declared static' 2018-08-10 10:16:04 +08:00
mmu.c HV: trusty: refine secure_world_control 2018-08-09 15:09:15 +08:00
mtrr.c hv:cleanup vmid related code 2018-08-06 12:27:53 +08:00
notify.c HV: Fix new MISRAC violations for brackets 2018-07-16 11:02:38 +08:00
pagetable.c hv: ept: add lookup_address to lookup the page table 2018-07-26 12:46:34 +08:00
pm.c pm: use cpu_context for s3 save/restore 2018-08-07 09:55:13 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
timer.c HV:treewide:fix value outside range of underlying type 2018-08-06 16:07:41 +08:00
trampoline.S HV:treewide:Replace HOST_GDT_RING0_CODE/DATA_SEL with constant 2018-07-18 12:31:42 +08:00
trusty.c hv:Refine destroy_secure_world API 2018-08-10 10:17:09 +08:00
virq.c hv: add more exception injection API 2018-08-09 14:46:13 +08:00
vmexit.c vcpu: add get/set register APIs 2018-08-07 09:55:13 +08:00
vmx_asm.S vcpu: add ext context support for world switch 2018-08-07 09:55:13 +08:00
vmx.c hv: init: unify init logic for vm0 bsp 2018-08-09 16:43:58 +08:00
vtd.c hv: treewide: fix 'Prototype and definition name mismatch' 2018-08-06 16:04:40 +08:00
wakeup.S pm: use cpu_context for s3 save/restore 2018-08-07 09:55:13 +08:00