X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmx.h;h=a37ead8c92747ec9c2ec3fb0610a744807a1da3f;hp=a34cd46ca5a7eaf6980e34bc5a96c59d542355b1;hb=cfcc5717f659b3ed2954f41cf363d3bceae8dc84;hpb=123a1ba27ea09c8fa77a1b36ce625b43d7c48b14 diff --git a/palacios/include/palacios/vmx.h b/palacios/include/palacios/vmx.h index a34cd46..a37ead8 100644 --- a/palacios/include/palacios/vmx.h +++ b/palacios/include/palacios/vmx.h @@ -214,6 +214,10 @@ struct vmcs_host_state { struct v3_segment tr; }; + + + + struct vmx_data { vmx_state_t state; struct vmcs_host_state host_state; @@ -222,6 +226,9 @@ struct vmx_data { uint8_t ia32e_avail; + v3_reg_t guest_cr4; /// corresponds to the CR4 Read shadow + + /* VMX Control Fields */ struct vmx_pin_ctrls pin_ctrls; struct vmx_pri_proc_ctrls pri_proc_ctrls; @@ -233,6 +240,10 @@ struct vmx_data { int v3_is_vmx_capable(); void v3_init_vmx_cpu(int cpu_id); +int v3_start_vmx_guest(struct guest_info* info); +int v3_vmx_enter(struct guest_info * info); + +int v3_init_vmx_vmcs(struct guest_info * info, v3_vm_class_t vm_class); #endif // ! __V3VEE__