move security related funcs into security.c

there are still some security related funcs in cpu_caps.c & cpu.c,
move them out into security.c.

Changes to be committed:
	modified:   Makefile
	modified:   arch/x86/cpu.c
	modified:   arch/x86/cpu_caps.c
	modified:   arch/x86/guest/vcpu.c
	new file:   arch/x86/security.c
	modified:   arch/x86/trusty.c
	modified:   arch/x86/vmx_asm.S
	modified:   include/arch/x86/cpu.h
	modified:   include/arch/x86/cpu_caps.h
	modified:   include/arch/x86/per_cpu.h
	new file:   include/arch/x86/security.h

Tracked-On: #1842
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Jason Chen CJ
2018-12-18 09:28:27 +08:00
committed by wenlingz
parent 0ad6da998c
commit 5968da4635
11 changed files with 150 additions and 113 deletions

View File

@@ -18,6 +18,7 @@
#include <logmsg.h>
#include "arch/x86/guest/instr_emul.h"
#include <profiling.h>
#include <security.h>
struct per_cpu_region {
/* vmxon_region MUST be 4KB-aligned */