acrn-hypervisor/hypervisor/arch/x86
Yonghua Huang 4fc5dcfc3e hv: enable SMAP in hypervisor
With SMAP enabled, hypervisor can't access pages that
owned by guest(either SOS or UOS), and an override is
is provided: stac()/clac() to enable/disable access to
guest's memory pages.

 Pre-conditon:
    Mark hypervisor owned pages as supervisor mode (U/S = 0),
       and set all othter memory pages as user mode (U/S = 1).

Tracked-On: #2056
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
2018-12-14 15:24:26 +08:00
..
boot hv: enable NX in hypervisor 2018-12-12 12:53:18 +08:00
configs Makefile: separate PLATFORM into BOARD+FIRMWARE 2018-12-12 13:23:28 +08:00
guest hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
Kconfig HV: replace serial PCI MMIO base with BDF config 2018-12-03 13:20:35 +08:00
assign.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
cpu.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
cpu_state_tbl.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
e820.c HV: rename e820_entries to e820_entries_count 2018-12-12 09:12:12 +08:00
ept.c hv: remove goto in ept_violation_vmexit_handler 2018-12-14 09:42:49 +08:00
gdt.c fix "Procedure is not pure assembler" 2018-11-13 16:28:58 +08:00
idt.S move idt.S and idt.h out of boot component 2018-12-12 09:07:43 +08:00
init.c modularization: hypervisor initilization component 2018-12-14 08:56:15 +08:00
io.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
ioapic.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
irq.c move idt fixup out of cpu_primary.S 2018-12-12 09:07:43 +08:00
lapic.c hv: lapic: fix a theoretic infinite loop when clear lapic isr 2018-11-22 12:44:21 +08:00
mmu.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
notify.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
page.c hv: minimize the case of "identifier reuse" 2018-12-07 15:21:39 +08:00
pagetable.c hv: mmu: replace dynamic memory allocation in memory 2018-11-02 13:15:48 +08:00
pm.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
static_checks.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
timer.c hv: timer: fix procedure has more than one exit point 2018-12-14 09:42:49 +08:00
trampoline.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
trusty.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
virq.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
vmexit.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
vmx.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
vmx_asm.S hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
vtd.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
wakeup.S hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00