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.


*** empty log message ***
[palacios.git] / palacios / src / palacios / vm_guest.c
1 #include <palacios/vm_guest.h>
2 #include <palacios/vmm.h>
3
4 void PrintV3Segments(struct v3_segments * segs) {
5   int i = 0;
6   struct v3_segment * seg_ptr = (struct v3_segment *)segs;
7   
8   char *seg_names[] = {"CS", "DS" , "ES", "FS", "GS", "SS" , "LDTR", "GDTR", "IDTR", "TR", NULL};
9   PrintDebug("Segments\n");
10
11   for (i = 0; seg_names[i] != NULL; i++) {
12
13     PrintDebug("\t%s: Sel=%x, base=%x, limit=%x\n", seg_names[i], seg_ptr[i].selector, seg_ptr[i].base, seg_ptr[i].limit);
14
15   }
16
17 }
18
19
20 void PrintV3CtrlRegs(struct v3_ctrl_regs * regs) {
21   int i = 0;
22   v3_reg_t * reg_ptr = (v3_reg_t *)regs;
23   char * reg_names[] = {"CR0", "CR2", "CR3", "CR4", "CR8", "FLAGS", NULL};
24
25   PrintDebug("32 bit Ctrl Regs:\n");
26
27   for (i = 0; reg_names[i] != NULL; i++) {
28     PrintDebug("\t%s=0x%x\n", reg_names[i], reg_ptr[i]);  
29   }
30 }