acrn-hypervisor/arch/x86
Mingqiang Chi c31c3d7f84 hv:bugfix for the API of creating secure world
Before this patch, HV accesses PML4E of secure world when the PML4
doesn't exist,will access null pointer.
Fix as follow:
Before the copy of PDPTE,will allocate memory and write PML4E,
then copy the PDPTE.

Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-04-04 11:54:52 +08:00
..
guest enable TSC-offset & add TSC MSR emulation 2018-04-04 10:23:03 +08:00
assign.c ptdev: fix ptdev_hv_owned_intx under release version 2018-03-28 16:05:51 +08:00
cpu_primary.S UEFI: change the efi_ctx passing method 2018-03-30 19:48:46 +08:00
cpu_secondary.S initial import 2018-03-07 21:05:38 +08:00
cpu.c hv: cpu: use the physical address limit from CPUID when available 2018-04-04 10:52:12 +08:00
cpuid.c hv: pass-through xsave feature to guests 2018-04-03 17:50:27 +08:00
ept.c ioreq: only clear vcpu->req when io request needed 2018-03-22 14:15:39 -07:00
gdt.c initial import 2018-03-07 21:05:38 +08:00
idt.S initial import 2018-03-07 21:05:38 +08:00
interrupt.c hv:enable APICv features based on CPU capability 2018-03-21 15:34:25 -07:00
intr_lapic.c hv: lapic: export write_lapic_reg32 2018-03-28 10:46:32 +08:00
intr_main.c uefi: init vlapic according to native lapic 2018-03-21 12:14:01 +08:00
io.c io: remove pio emulation restriction 2018-03-29 14:54:23 +08:00
ioapic.c initial import 2018-03-07 21:05:38 +08:00
irq.c uefi: remove old interrupt injection method 2018-03-21 12:14:01 +08:00
mmu.c mmu: Rename several variables related to page table type 2018-03-20 16:44:53 +08:00
notify.c initial import 2018-03-07 21:05:38 +08:00
retpoline-thunk.S retpoline: add indirect thunk support 2018-03-15 16:25:53 +08:00
softirq.c initial import 2018-03-07 21:05:38 +08:00
timer.c hv: lapic: export write_lapic_reg32 2018-03-28 10:46:32 +08:00
trusty.c hv:bugfix for the API of creating secure world 2018-04-04 11:54:52 +08:00
vmexit.c hv: pass-through xsave feature to guests 2018-04-03 17:50:27 +08:00
vmx_asm.S Jmp to vm_exit directly to avoid calling vmlaunch again if vm-entry fails in vmresume 2018-03-20 14:36:41 +08:00
vmx.c enable TSC-offset & add TSC MSR emulation 2018-04-04 10:23:03 +08:00
vtd.c Rename TIME_MS_DELTA to CYCLES_PER_MS 2018-03-29 14:54:23 +08:00