debuggers.hg

view xen/include/asm-x86/nmi.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 42d8dadb5864
children
line source
2 #ifndef ASM_NMI_H
3 #define ASM_NMI_H
5 #include <public/nmi.h>
7 struct cpu_user_regs;
9 typedef int (*nmi_callback_t)(struct cpu_user_regs *regs, int cpu);
11 /**
12 * set_nmi_callback
13 *
14 * Set a handler for an NMI. Only one handler may be
15 * set. Return 1 if the NMI was handled.
16 */
17 void set_nmi_callback(nmi_callback_t callback);
19 /**
20 * unset_nmi_callback
21 *
22 * Remove the handler previously set.
23 */
24 void unset_nmi_callback(void);
26 /**
27 * register_guest_nmi_callback
28 *
29 * The default NMI handler passes the NMI to a guest callback. This
30 * function registers the address of that callback.
31 */
32 long register_guest_nmi_callback(unsigned long address);
34 /**
35 * unregister_guest_nmi_callback
36 *
37 * Unregister a guest NMI handler.
38 */
39 long unregister_guest_nmi_callback(void);
41 #endif /* ASM_NMI_H */