view xen/include/asm-x86/bug.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 070cf119a7ec
children 69108560c7eb
line source
1 #ifndef __X86_BUG_H__
2 #define __X86_BUG_H__
4 #ifdef __x86_64__
5 #include <asm/x86_64/bug.h>
6 #else
7 #include <asm/x86_32/bug.h>
8 #endif
10 struct bug_frame {
11 unsigned char ud2[2];
12 unsigned char ret;
13 unsigned short id; /* BUGFRAME_??? */
14 } __attribute__((packed));
16 #define BUGFRAME_dump 0
17 #define BUGFRAME_warn 1
18 #define BUGFRAME_bug 2
19 #define BUGFRAME_assert 3
21 #endif /* __X86_BUG_H__ */