ia64/xen-unstable

view xen/include/asm-x86/x86_64/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_64_BUG_H__
2 #define __X86_64_BUG_H__
4 struct bug_frame_str {
5 unsigned char mov[2];
6 unsigned long str;
7 } __attribute__((packed));
8 #define BUG_MOV_STR "\x48\xbc"
10 #define dump_execution_state() \
11 asm volatile ( \
12 "ud2 ; ret $%c0" \
13 : : "i" (BUGFRAME_dump) )
15 #define WARN() \
16 asm volatile ( \
17 "ud2 ; ret $%c0 ; .byte 0x48,0xbc ; .quad %c1" \
18 : : "i" (BUGFRAME_warn | (__LINE__<<2)), \
19 "i" (__FILE__) )
21 #define BUG() \
22 asm volatile ( \
23 "ud2 ; ret $%c0 ; .byte 0x48,0xbc ; .quad %c1" \
24 : : "i" (BUGFRAME_bug | (__LINE__<<2)), \
25 "i" (__FILE__) )
27 #define assert_failed(p) \
28 asm volatile ( \
29 "ud2 ; ret $%c0 ; .byte 0x48,0xbc ; .quad %c1" \
30 " ; .byte 0x48,0xbc ; .quad %c2" \
31 : : "i" (BUGFRAME_assert | (__LINE__<<2)), \
32 "i" (__FILE__), "i" (#p) )
34 #endif /* __X86_64_BUG_H__ */