debuggers.hg

view xen/common/compat/xenoprof.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 44ec075760b6
children
line source
1 /*
2 * compat/xenoprof.c
3 */
5 #include <compat/xenoprof.h>
7 #define COMPAT
9 #define do_xenoprof_op compat_xenoprof_op
11 #define xen_oprof_init xenoprof_init
12 CHECK_oprof_init;
13 #undef xen_oprof_init
15 #define xenoprof_get_buffer compat_oprof_get_buffer
16 #define xenoprof_op_get_buffer compat_oprof_op_get_buffer
17 #define xenoprof_arch_counter compat_oprof_arch_counter
19 #define xen_domid_t domid_t
20 #define compat_domid_t domid_compat_t
21 CHECK_TYPE(domid);
22 #undef compat_domid_t
23 #undef xen_domid_t
25 #define xen_oprof_passive xenoprof_passive
26 CHECK_oprof_passive;
27 #undef xen_oprof_passive
29 #define xenoprof_counter compat_oprof_counter
31 #include "../xenoprof.c"
33 /*
34 * Local variables:
35 * mode: C
36 * c-set-style: "BSD"
37 * c-basic-offset: 4
38 * tab-width: 4
39 * indent-tabs-mode: nil
40 * End:
41 */