debuggers.hg

view xen/arch/ia64/Rules.mk @ 22855:1d1eec7e1fb4

xl: Perform minimal validation of virtual disk file while parsing config file

This patch performs some very basic validation on the virtual disk
file passed through the config file. This validation ensures that we
don't go too far with the initialization like spawn qemu and more
while there could be some potentially fundamental issues.

[ Patch fixed up to work with PHYSTYPE_EMPTY 22808:6ec61438713a -iwj ]

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Kamala Narasimhan <kamala.narasimhan@gmail.com>
date Tue Jan 25 18:09:49 2011 +0000 (2011-01-25)
parents 726b56720b16
children
line source
1 ########################################
2 # ia64-specific definitions
4 ia64 := y
5 HAS_ACPI := y
6 HAS_VGA := y
7 xenoprof := y
8 no_warns ?= n
9 vti_debug ?= n
10 vmx_panic ?= n
11 vhpt_disable ?= n
12 xen_ia64_expose_p2m ?= y
13 xen_ia64_pervcpu_vhpt ?= y
14 xen_ia64_tlb_track ?= y
15 xen_ia64_tlb_track_cnt ?= n
16 xen_ia64_tlbflush_clock ?= y
17 xen_ia64_disable_optvfault ?= n
19 # If they are enabled,
20 # shrink struct page_info assuming all mfn can be addressed by 32 bits.
21 # However, with 50bit ia64 architected physical address and 16KB page size,
22 # mfn isn't always assessed by 32bit. So they are disabled by default.
23 xen_ia64_shrink_page_list ?= n
24 xen_ia64_pickle_domain ?= n
26 # Used only by linux/Makefile.
27 AFLAGS_KERNEL += -mconstant-gp -nostdinc $(CPPFLAGS)
29 CFLAGS += -nostdinc -fno-builtin -fno-common
30 CFLAGS += -mconstant-gp
31 #CFLAGS += -O3 # -O3 over-inlines making debugging tough!
32 CFLAGS += -O2 # but no optimization causes compile errors!
33 CFLAGS += -fomit-frame-pointer -D__KERNEL__
34 CFLAGS += -iwithprefix include
35 CPPFLAGS+= -I$(BASEDIR)/include \
36 -I$(BASEDIR)/include/asm-ia64 \
37 -I$(BASEDIR)/include/asm-ia64/linux \
38 -I$(BASEDIR)/include/asm-ia64/linux-xen \
39 -I$(BASEDIR)/include/asm-ia64/linux-null \
40 -I$(BASEDIR)/arch/ia64/linux -I$(BASEDIR)/arch/ia64/linux-xen
41 CFLAGS += $(CPPFLAGS)
42 #CFLAGS += -Wno-pointer-arith -Wredundant-decls
43 CFLAGS += -DIA64 -DXEN -DLINUX_2_6
44 CFLAGS += -ffixed-r13 -mfixed-range=f2-f5,f12-f127,b2-b5
45 CFLAGS += -g
46 ifeq ($(vti_debug),y)
47 CFLAGS += -DVTI_DEBUG
48 endif
49 ifeq ($(vmx_panic),y)
50 CFLAGS += -DCONFIG_VMX_PANIC
51 endif
52 ifeq ($(xen_ia64_expose_p2m),y)
53 CFLAGS += -DCONFIG_XEN_IA64_EXPOSE_P2M
54 endif
55 ifeq ($(xen_ia64_pervcpu_vhpt),y)
56 CFLAGS += -DCONFIG_XEN_IA64_PERVCPU_VHPT
57 ifeq ($(vhpt_disable),y)
58 $(error "both xen_ia64_pervcpu_vhpt=y and vhpt_disable=y are enabled. they can't be enabled simultaneously. disable one of them.")
59 endif
60 endif
61 ifeq ($(xen_ia64_tlb_track),y)
62 CFLAGS += -DCONFIG_XEN_IA64_TLB_TRACK
63 endif
64 ifeq ($(xen_ia64_tlb_track_cnt),y)
65 CFLAGS += -DCONFIG_TLB_TRACK_CNT
66 endif
67 ifeq ($(xen_ia64_tlbflush_clock),y)
68 CFLAGS += -DCONFIG_XEN_IA64_TLBFLUSH_CLOCK
69 endif
70 ifeq ($(no_warns),y)
71 CFLAGS += -Wa,--fatal-warnings -Werror -Wno-uninitialized
72 endif
73 ifneq ($(vhpt_disable),y)
74 CFLAGS += -DVHPT_ENABLED=1
75 else
76 CFLAGS += -DVHPT_ENABLED=0
77 endif
78 ifeq ($(xen_ia64_disable_optvfault),y)
79 CFLAGS += -DCONFIG_XEN_IA64_DISABLE_OPTVFAULT
80 endif
81 ifeq ($(xen_ia64_shrink_page_list),y)
82 CFLAGS += -DCONFIG_IA64_SHRINK_PAGE_LIST
83 endif
84 ifeq ($(xen_ia64_pickle_domain),y)
85 CFLAGS += -DCONFIG_IA64_PICKLE_DOMAIN
86 endif
88 LDFLAGS = -g