view xen/common/decompress.h @ 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 c4630f8f69cc
line source
1 #include <xen/config.h>
2 #include <xen/cache.h>
3 #include <xen/decompress.h>
4 #include <xen/init.h>
5 #include <xen/string.h>
6 #include <xen/types.h>
7 #include <xen/xmalloc.h>
9 #define STATIC
10 #define INIT __init
12 static void(*__initdata error)(const char *);
13 #define set_error_fn(x) error = x;
15 #define malloc xmalloc_bytes
16 #define free xfree
18 #define large_malloc xmalloc_bytes
19 #define large_free xfree