Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


9718f74e4d79d696e54d66dded2ea7d14efab14c
[palacios.git] / palacios / include / palacios / vmm_debug.h
1 /* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
2 /* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
3
4 #ifndef __VMM_DEBUG_H
5 #define __VMM_DEBUG_H
6
7
8 #ifdef __V3VEE__
9
10 #include <palacios/vmm.h>
11
12 struct dbg_bp32 {
13   uint_t breakpoint : 32;
14 };
15
16 struct dbg_bp64 {
17   ullong_t breakpoint;
18 };
19
20 struct dr6_32 {
21   uint_t bp0 : 1;
22   uint_t bp1 : 1;
23   uint_t bp2 : 1;
24   uint_t bp3 : 1;
25   uint_t rsvd1 : 8; // read as ones
26   uint_t rsvd2 : 1; // read as zero
27   uint_t bd  : 1; 
28   uint_t bs  : 1;
29   uint_t bt  : 1;
30   uint_t rsvd3 : 16; // read as one
31 };
32
33
34 struct dr6_64 {
35   uint_t bp0 : 1;
36   uint_t bp1 : 1;
37   uint_t bp2 : 1;
38   uint_t bp3 : 1;
39   uint_t rsvd1 : 8; // read as ones
40   uint_t rsvd2 : 1; // read as zero
41   uint_t bd  : 1; 
42   uint_t bs  : 1;
43   uint_t bt  : 1;
44   uint_t rsvd3 : 16; // read as one
45   uint_t rsvd4 : 32; // MBZ
46 };
47
48
49 struct dr7_32 {
50   uint_t L0   : 1;
51   uint_t G0   : 1;
52   uint_t L1   : 1;
53   uint_t G1   : 1;
54   uint_t L2   : 1;
55   uint_t G2   : 1;
56   uint_t L3   : 1;
57   uint_t G3   : 1;
58   uint_t LE   : 1;
59   uint_t GE   : 1;
60   uint_t rsvd1 : 1; // Read as one
61   uint_t rsvd2 : 2; // Read as zero
62   uint_t GD   : 1;
63   uint_t rsvd3 : 2; // Read as zero
64   uint_t rw0  : 1;
65   uint_t len0 : 1;
66   uint_t rw1  : 1;
67   uint_t len1 : 1;
68   uint_t rw2  : 1;
69   uint_t len2 : 1;
70   uint_t rw3  : 1;
71   uint_t len3 : 1;
72 };
73
74
75 struct dr7_64 {
76   uint_t L0   : 1;
77   uint_t G0   : 1;
78   uint_t L1   : 1;
79   uint_t G1   : 1;
80   uint_t L2   : 1;
81   uint_t G2   : 1;
82   uint_t L3   : 1;
83   uint_t G3   : 1;
84   uint_t LE   : 1;
85   uint_t GE   : 1;
86   uint_t rsvd1 : 1; // Read as one
87   uint_t rsvd2 : 2; // Read as zero
88   uint_t GD   : 1;
89   uint_t rsvd3 : 2; // Read as zero
90   uint_t rw0  : 1;
91   uint_t len0 : 1;
92   uint_t rw1  : 1;
93   uint_t len1 : 1;
94   uint_t rw2  : 1;
95   uint_t len2 : 1;
96   uint_t rw3  : 1;
97   uint_t len3 : 1;
98   uint_t rsvd4 : 32; // MBZ
99 };
100
101
102
103
104
105
106 void PrintDebugHex(unsigned char x);
107 void PrintDebugMemDump(unsigned char *start, int n);
108
109
110
111 #endif // !__V3VEE__
112
113 #endif