debuggers.hg

view xen/common/version.c @ 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 675fb031df88
children
line source
1 #include <xen/compile.h>
2 #include <xen/version.h>
4 const char *xen_compile_date(void)
5 {
6 return XEN_COMPILE_DATE;
7 }
9 const char *xen_compile_time(void)
10 {
11 return XEN_COMPILE_TIME;
12 }
14 const char *xen_compile_by(void)
15 {
16 return XEN_COMPILE_BY;
17 }
19 const char *xen_compile_domain(void)
20 {
21 return XEN_COMPILE_DOMAIN;
22 }
24 const char *xen_compile_host(void)
25 {
26 return XEN_COMPILE_HOST;
27 }
29 const char *xen_compiler(void)
30 {
31 return XEN_COMPILER;
32 }
34 unsigned int xen_major_version(void)
35 {
36 return XEN_VERSION;
37 }
39 unsigned int xen_minor_version(void)
40 {
41 return XEN_SUBVERSION;
42 }
44 const char *xen_extra_version(void)
45 {
46 return XEN_EXTRAVERSION;
47 }
49 const char *xen_changeset(void)
50 {
51 return XEN_CHANGESET;
52 }
54 const char *xen_banner(void)
55 {
56 return XEN_BANNER;
57 }