acrn-hypervisor/hypervisor/arch/x86
Jason Chen CJ e84d4dee19 trusty: init & switch world fix
- when init, cr0 & cr4 should read from VMCS
- when world switch, cr0/cr4 read shadow should also be save/restore

v2:
- use context->vmx_cr0/cr4 to save/restore VMX_GUEST_CR0/CR4
- use context->cr0/cr4 to save/restore VMX_CR0/CR4_READ_SHADOW

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-06-20 11:30:28 +08:00
..
configs HV: config: add Kconfig and defconfigs for sbl & uefi 2018-06-08 17:21:13 +08:00
debug HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
guest fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
assign.c fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
cpu_primary.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
cpu_state_tbl.c HV: make cpu state table static const 2018-06-14 13:39:59 +08:00
cpu.c HV: remove redundant code in cpu_secondary_init 2018-06-15 17:13:12 +08:00
cpuid.c hv: enable MTRR virtualization 2018-06-08 12:06:15 +08:00
ept.c ept: set trusty eptp to 0 after destroy and only invalidate it when exist 2018-06-20 11:30:28 +08:00
gdt.c HV: config: adapt to the generated config.h 2018-06-08 17:21:13 +08:00
idt.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
interrupt.c fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
intr_lapic.c fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
intr_main.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
io.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
ioapic.c hv: Add suspend/resume callback for ioapic 2018-06-14 13:41:45 +08:00
irq.c fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
Kconfig HV: make: manage debug/release build in kconfig 2018-06-15 15:50:09 +08:00
mmu.c ept: set trusty eptp to 0 after destroy and only invalidate it when exist 2018-06-20 11:30:28 +08:00
mtrr.c hv: update EPT when guests change MTRRs 2018-06-08 12:06:15 +08:00
notify.c irq: convert irq/vector numbers to unsigned 2018-06-12 10:21:58 +08:00
pm.c hv: Add initialize pm.c 2018-06-14 13:41:45 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
softirq.c HV: bug fix in operating softirq 2018-06-14 13:41:12 +08:00
timer.c hv: fix error use of list_del for delete timer 2018-06-20 11:25:44 +08:00
trampoline.S hv: Fix typo of trampline with trampoline 2018-06-12 15:54:16 +08:00
trusty.c trusty: init & switch world fix 2018-06-20 11:30:28 +08:00
vmexit.c HV: Remove misuesed __unused 2018-06-14 13:42:42 +08:00
vmx_asm.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
vmx.c Revert "VMX: change PAT register default value" 2018-06-15 17:10:51 +08:00
vtd.c fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00