view xen/include/asm-x86/nmi.h @ 15812:86a154e1ef5d

[HVM] Shadow: don't shadow the p2m table.
For HVM vcpus with paging disabled, we used to shadow the p2m table,
and skip the p2m lookup to go from gfn to mfn. Instead, we now
provide a simple pagetable that gives a one-to-one mapping of 4GB, and
shadow that, making the translations from gfn to mfn via the p2m.
This removes the paging-disabled special-case code from the shadow
fault handler, and allows us to expand the p2m interface, since all HVM
translations now go through the same p2m lookups.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Fri Aug 31 11:06:22 2007 +0100 (2007-08-31)
parents c6f7774cae63
children 42d8dadb5864
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 #endif /* ASM_NMI_H */