debuggers.hg

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