Enable EFER NX bit and OSXSAVE bit in cr4
authorZach Zimmerman <zpzimmerman@gmail.com>
Thu, 24 Aug 2017 22:07:26 +0000 (15:07 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 25 Aug 2017 18:39:56 +0000 (14:39 -0400)
commit7444a7d6cac452ca15265051015bbc844764fab4
tree09446991d65e0c8f37920194acb535aa57935750
parent14117c9735bd919b2f92976946d78e09ecbd0321
Enable EFER NX bit and OSXSAVE bit in cr4

EFER_NX allows the guest to disable execute perms
on its pages.

OSXSAVE allows guest user applications to execute xsave.

Change-Id: Icb9920564ae07184dc9aa07cad2c79825d2adbad
Signed-off-by: Zach Zimmerman <zpzimmerman@gmail.com>
[ Compilation bug, missing ) on assert() ]
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/vmm/intel/vmx.c