X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmx.h;h=fd5e6ce2fd8884c70191e3d930bd6e6441b59af6;hb=28370c634cc292659d6c97dcf276c0e9fc5ac33c;hp=034cbfa483a5080b4b16d61d180cba0382a377fc;hpb=29b7ff8811c82ab543f5c969e44ff217637a09c7;p=palacios.releases.git diff --git a/palacios/include/palacios/vmx.h b/palacios/include/palacios/vmx.h index 034cbfa..fd5e6ce 100644 --- a/palacios/include/palacios/vmx.h +++ b/palacios/include/palacios/vmx.h @@ -1,5 +1,3 @@ - - /* * This file is part of the Palacios Virtual Machine Monitor developed * by the V3VEE Project with funding from the United States National @@ -183,6 +181,11 @@ struct vmx_basic_msr { typedef enum { VMXASSIST_DISABLED, VMXASSIST_ENABLED +} vmxassist_state_t; + +typedef enum { + VMX_UNLAUNCHED, + VMX_LAUNCHED } vmx_state_t; struct tss_descriptor { @@ -220,6 +223,7 @@ struct vmcs_host_state { struct vmx_data { vmx_state_t state; + vmxassist_state_t assist_state; struct vmcs_host_state host_state; addr_t vmcs_ptr_phys; @@ -238,7 +242,9 @@ struct vmx_data { }; int v3_is_vmx_capable(); + void v3_init_vmx_cpu(int cpu_id); +void v3_deinit_vmx_cpu(int cpu_id); int v3_start_vmx_guest(struct guest_info* info); int v3_vmx_enter(struct guest_info * info);