annotate unmodified_drivers/linux-2.6/ @ 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 <>
Acked-by: Ian Jackson <>
Signed-off-by: Ian Jackson <>
Committed-by: Ian Jackson <>
author Kamala Narasimhan <>
date Tue Jan 25 18:09:49 2011 +0000 (2011-01-25)
parents d2373000996d
rev   line source
kfraser@11202 1 # Hack: we need to use the config which was used to build the kernel,
kfraser@11202 2 # except that that won't have the right headers etc., so duplicate
kfraser@11202 3 # some of the mach-xen infrastructure in here.
kfraser@11202 4 #
kfraser@11202 5 # (i.e. we need the native config for things like -mregparm, but
kfraser@11202 6 # a Xen kernel to find the right headers)
keir@17649 7 _XEN_CPPFLAGS += -D__XEN_INTERFACE_VERSION__=0x00030205
keir@17649 8 _XEN_CPPFLAGS += -DCONFIG_XEN_COMPAT=0xffffff
keir@17649 9 _XEN_CPPFLAGS += -I$(M)/include -I$(M)/compat-include -DHAVE_XEN_PLATFORM_COMPAT_H
awilliam@13919 10 ifeq ($(ARCH),ia64)
awilliam@13919 12 endif
ian@14128 13
keir@21319 14 _XEN_CPPFLAGS += -include $(wildcard $(objtree)/include/*/autoconf.h)
keir@17649 15
keir@17649 16 EXTRA_CFLAGS += $(_XEN_CPPFLAGS)
keir@17649 17 EXTRA_AFLAGS += $(_XEN_CPPFLAGS)
keir@18926 18 CPPFLAGS := -I$(M)/include $(CPPFLAGS)