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.


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