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.


Added shadow page handling, IO and MSR bitmap allocation, and started
[palacios.git] / palacios / include / palacios / vmx.h
index 5da6609..4ac707b 100644 (file)
@@ -77,26 +77,31 @@ typedef enum {
 } vmx_state_t;
 
 struct tss_descriptor {
-    uint16_t    limit1;
-    uint16_t    base1;
-    uint_t  base2       : 8;
-    /* In 32 bit type follows the form 10B1b, where B is the busy flag */
-    uint_t  type        : 4; 
-    uint_t  zero1       : 1;
-    uint_t  dpl         : 2;
-    uint_t  present     : 1;
-    uint_t  limit2      : 4;
-    uint_t  available   : 1;
-    uint_t  zero2       : 1;
-    uint_t  zero3       : 1;
-    uint_t  granularity : 1;
-    uint_t  base3       : 8;
+    union {
+    ulong_t value;
+    struct {
+        uint16_t    limit1;
+        uint16_t    base1;
+        uint_t      base2       : 8;
+        /* In IA32, type follows the form 10B1b, where B is the busy flag */
+        uint_t      type        : 4; 
+        uint_t      zero1       : 1;
+        uint_t      dpl         : 2;
+        uint_t      present     : 1;
+        uint_t      limit2      : 4;
+        uint_t      available   : 1;
+        uint_t      zero2       : 1;
+        uint_t      zero3       : 1;
+        uint_t      granularity : 1;
+        uint_t      base3       : 8;
 #ifdef __V3_64BIT__
-    uint32_t    base4;
-    uint_t  rsvd1       : 8;
-    uint_t  zero4       : 5;
-    uint_t  rsvd2       : 19;
+        uint32_t    base4;
+        uint_t      rsvd1       : 8;
+        uint_t      zero4       : 5;
+        uint_t      rsvd2       : 19;
 #endif
+    } __attribute__((packed));
+    } __attribute__((packed));
 }__attribute__((packed));
 
 struct vmcs_host_state {
@@ -109,6 +114,13 @@ struct vmx_data {
     vmx_state_t state;
     addr_t vmcs_ptr_phys;
     struct vmcs_host_state host_state;
+    /* VMX Control Fields */
+    uint32_t pinbased_ctrls;
+    uint32_t pri_procbased_ctrls;
+    uint32_t sec_procbased_ctrls;
+    uint32_t exit_ctrls;
+    uint32_t entry_ctrls;
+    uint32_t excp_bitmap;
 };