acrn-hypervisor/hypervisor/include/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
..
guest trusty: init & switch world fix 2018-06-20 11:30:28 +08:00
apicreg.h lapic: continuous LVT registers as an array 2018-05-30 13:52:11 +08:00
assign.h HV: move common stuff from assign.c 2018-06-15 17:10:41 +08:00
cpu.h HV: enable SMEP in hypervisor 2018-06-15 17:11:03 +08:00
cpufeatures.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
cpuid.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
gdt.h HV:treewide:C99-friendly per_cpu implementation change the per_cpu method 2018-06-05 17:09:00 +08:00
hob_parse.h HV: Parse SeedList HOB 2018-06-07 09:55:29 +08:00
hv_arch.h hv: basic MTRR virtualization 2018-06-08 12:06:15 +08:00
idt.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
io.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
ioapic.h hv: Add suspend/resume callback for ioapic 2018-06-14 13:41:45 +08:00
irq.h fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
lapic.h fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
mmu.h HV: enable SMEP in hypervisor 2018-06-15 17:11:03 +08:00
msr.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
mtrr.h hv: basic MTRR virtualization 2018-06-08 12:06:15 +08:00
multiboot.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
per_cpu.h HV: config: adapt to the generated config.h 2018-06-08 17:21:13 +08:00
reboot.h hv: Add reboot shell command 2018-05-18 16:38:40 +08:00
softirq.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
timer.h fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
trusty.h HV: Parse SeedList HOB 2018-06-07 09:55:29 +08:00
vmexit.h fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
vmx.h hv: add vmx_off and update exec_vmxon_instr 2018-06-07 15:36:46 +08:00
vtd.h hv: Add suspend/resume callback for vtd 2018-06-14 13:41:45 +08:00
zeropage.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00