debuggers.hg

view xen/include/asm-x86/asm_defns.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 <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 2762b6d3149c
children
line source
2 #ifndef __X86_ASM_DEFNS_H__
3 #define __X86_ASM_DEFNS_H__
5 #ifndef COMPILE_OFFSETS
6 /* NB. Auto-generated from arch/.../asm-offsets.c */
7 #include <asm/asm-offsets.h>
8 #endif
9 #include <asm/processor.h>
11 #ifdef __x86_64__
12 #include <asm/x86_64/asm_defns.h>
13 #else
14 #include <asm/x86_32/asm_defns.h>
15 #endif
17 /* Exception table entry */
18 #ifdef __ASSEMBLY__
19 # define _ASM__EXTABLE(sfx, from, to) \
20 .section .ex_table##sfx, "a" ; \
21 .balign 4 ; \
22 .long _ASM_EX(from), _ASM_EX(to) ; \
23 .previous
24 #else
25 # define _ASM__EXTABLE(sfx, from, to) \
26 " .section .ex_table" #sfx ",\"a\"\n" \
27 " .balign 4\n" \
28 " .long " _ASM_EX(from) ", " _ASM_EX(to) "\n" \
29 " .previous\n"
30 #endif
32 #define _ASM_EXTABLE(from, to) _ASM__EXTABLE(, from, to)
33 #define _ASM_PRE_EXTABLE(from, to) _ASM__EXTABLE(.pre, from, to)
35 #ifdef __ASSEMBLY__
37 #define UNLIKELY_START(cond, tag) \
38 j##cond .Lunlikely.tag; \
39 .subsection 1; \
40 .Lunlikely.tag:
42 #define UNLIKELY_END(tag) \
43 jmp .Llikely.tag; \
44 .subsection 0; \
45 .Llikely.tag:
47 #endif
49 #endif /* __X86_ASM_DEFNS_H__ */