direct-io.hg

view Config.mk @ 11750:d845c9522d9e

[HVM][SVM] Check if SVM is disabled by the BIOS before enabling it.

Newer BIOS implementations will be able to disable the SVM feature,
although an additional test of an MSR (VMCR 0xC0010114 bit 4) is
necessary (set equals disabled). Bit 4 of MSR 0xc0010114 returns 0
(SVM enabled) on machines with older BIOS' without the SVM disable
feature support.

Signed-off-by: Wei Huang <wei.huang2@amd.com>=20
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
author kfraser@localhost.localdomain
date Thu Oct 12 16:12:10 2006 +0100 (2006-10-12)
parents ed20a5addce4
children 4a3d9fa6ba24 db3d58d30e9d
line source
1 # -*- mode: Makefile; -*-
3 # A debug build of Xen and tools?
4 debug ?= n
6 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
7 -e s/ppc/powerpc/)
8 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
9 XEN_TARGET_X86_PAE ?= n
11 # Tools to run on system hosting the build
12 HOSTCC = gcc
13 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
15 AS = $(CROSS_COMPILE)as
16 LD = $(CROSS_COMPILE)ld
17 CC = $(CROSS_COMPILE)gcc
18 CPP = $(CROSS_COMPILE)gcc -E
19 AR = $(CROSS_COMPILE)ar
20 RANLIB = $(CROSS_COMPILE)ranlib
21 NM = $(CROSS_COMPILE)nm
22 STRIP = $(CROSS_COMPILE)strip
23 OBJCOPY = $(CROSS_COMPILE)objcopy
24 OBJDUMP = $(CROSS_COMPILE)objdump
26 DISTDIR ?= $(XEN_ROOT)/dist
27 DESTDIR ?= /
29 INSTALL = install
30 INSTALL_DIR = $(INSTALL) -d -m0755
31 INSTALL_DATA = $(INSTALL) -m0644
32 INSTALL_PROG = $(INSTALL) -m0755
34 ifneq ($(debug),y)
35 # Optimisation flags are overridable
36 CFLAGS ?= -O2 -fomit-frame-pointer
37 CFLAGS += -DNDEBUG
38 else
39 # Less than -O1 produces bad code and large stack frames
40 CFLAGS ?= -O1 -fno-omit-frame-pointer
41 CFLAGS += -g
42 endif
44 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
46 ifneq ($(EXTRA_PREFIX),)
47 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
48 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
49 endif
51 test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2))
53 CFLAGS += -Wall -Wstrict-prototypes
55 HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
56 CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)
58 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
59 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
61 # Choose the best mirror to download linux kernel
62 KERNEL_REPO = http://www.kernel.org
64 # If ACM_SECURITY = y, then the access control module is compiled
65 # into Xen and the policy type can be set by the boot policy file
66 # y - Build the Xen ACM framework
67 # n - Do not build the Xen ACM framework
68 ACM_SECURITY ?= n
70 # If ACM_SECURITY = y and no boot policy file is installed,
71 # then the ACM defaults to the security policy set by
72 # ACM_DEFAULT_SECURITY_POLICY
73 # Supported models are:
74 # ACM_NULL_POLICY
75 # ACM_CHINESE_WALL_POLICY
76 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
77 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
78 ACM_DEFAULT_SECURITY_POLICY ?= ACM_NULL_POLICY
80 # Optional components
81 XENSTAT_XENTOP ?= y
83 VTPM_TOOLS ?= n
85 -include $(XEN_ROOT)/.config