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.


more work on the memory system
[palacios.git] / palacios / include / geekos / svm_ctrl_regs.h
1 #ifndef __SVM_CTRL_REGS_H
2 #define __SVM_CTRL_REGS_H
3
4 #include <geekos/vm_guest.h>
5 #include <geekos/vmm_util.h>
6
7
8 // First opcode byte
9 static const uchar_t cr_access_byte = 0x0f;
10
11 // Second opcode byte
12 static const uchar_t lmsw_byte = 0x01;
13 static const uchar_t smsw_byte = 0x01;
14 static const uchar_t clts_byte = 0x06;
15 static const uchar_t mov_to_cr_byte = 0x22;
16 static const uchar_t mov_from_cr_byte = 0x20;
17
18
19
20 int handle_cr0_write(guest_info_t * info, ullong_t * new_cr0);
21
22
23
24
25 #endif