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.


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