debuggers.hg

view xen/include/asm-x86/trace.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 c68ce89542c7
children
line source
1 #ifndef __ASM_TRACE_H__
2 #define __ASM_TRACE_H__
4 #include <asm/page.h>
6 void __trace_pv_trap(int trapnr, unsigned long eip,
7 int use_error_code, unsigned error_code);
8 static inline void trace_pv_trap(int trapnr, unsigned long eip,
9 int use_error_code, unsigned error_code)
10 {
11 if ( unlikely(tb_init_done) )
12 __trace_pv_trap(trapnr, eip, use_error_code, error_code);
13 }
15 void __trace_pv_page_fault(unsigned long addr, unsigned error_code);
16 static inline void trace_pv_page_fault(unsigned long addr,
17 unsigned error_code)
18 {
19 if ( unlikely(tb_init_done) )
20 __trace_pv_page_fault(addr, error_code);
21 }
23 void __trace_trap_one_addr(unsigned event, unsigned long va);
24 static inline void trace_trap_one_addr(unsigned event, unsigned long va)
25 {
26 if ( unlikely(tb_init_done) )
27 __trace_trap_one_addr(event, va);
28 }
30 void __trace_trap_two_addr(unsigned event, unsigned long va1,
31 unsigned long va2);
32 static inline void trace_trap_two_addr(unsigned event, unsigned long va1,
33 unsigned long va2)
34 {
35 if ( unlikely(tb_init_done) )
36 __trace_trap_two_addr(event, va1, va2);
37 }
39 void __trace_ptwr_emulation(unsigned long addr, l1_pgentry_t npte);
40 static inline void trace_ptwr_emulation(unsigned long addr, l1_pgentry_t npte)
41 {
42 if ( unlikely(tb_init_done) )
43 __trace_ptwr_emulation(addr, npte);
44 }
46 #endif /* __ASM_TRACE_H__ */