acrn-hypervisor/hypervisor/arch/x86/boot
Yonghua Huang 4d13ad9d08 hv: enable NX in hypervisor
- enable NX feature in hypervisor:
  1. Set 'XD' bit for all pages, including pages for guests
     when initialize MMU tables in hypervisor.
  2. remove 'XD' bit for pages that contain hypervisor instructions.
  3. enable MSR EFER.NXE,which will enable page access restriction by
     preventing instruction fetches form pages with XD bit set.

- remove "-Wl -z noexecstack" GCC flag option in hypervisor
  Makefile as it would not affect stack attribute in hyervisor,
  which setup stack itself, instead of by loader.

Tracked-On: #1122
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
2018-12-12 12:53:18 +08:00
..
cpu_primary.S move idt.S and idt.h out of boot component 2018-12-12 09:07:43 +08:00
cpu_save_boot_ctx.S modularization: boot component 2018-12-03 09:09:44 +08:00
trampoline.S hv: enable NX in hypervisor 2018-12-12 12:53:18 +08:00