X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmx_assist.c;h=d59ed0d23721957c1404c8a5cd7b37c9683e2293;hb=0a7690f54cb5bda83780dac26ce433ad24b1d766;hp=d836ad22343b7775c8e756222ca49c569d69cebc;hpb=ae0d9f72adc43c791ac13037285385fd8bb3c206;p=palacios.git diff --git a/palacios/src/palacios/vmx_assist.c b/palacios/src/palacios/vmx_assist.c index d836ad2..d59ed0d 100644 --- a/palacios/src/palacios/vmx_assist.c +++ b/palacios/src/palacios/vmx_assist.c @@ -59,7 +59,7 @@ int v3_vmxassist_ctx_switch(struct guest_info * info) { return -1; } - if (vmx_info->state == VMXASSIST_DISABLED) { + if (vmx_info->assist_state == VMXASSIST_DISABLED) { /* Save the old Context */ vmx_save_world_ctx(info, old_ctx); @@ -67,13 +67,13 @@ int v3_vmxassist_ctx_switch(struct guest_info * info) { /* restore new context, vmxassist should launch the bios the first time */ vmx_restore_world_ctx(info, new_ctx); - vmx_info->state = VMXASSIST_ENABLED; + vmx_info->assist_state = VMXASSIST_ENABLED; - } else if (vmx_info->state == VMXASSIST_ENABLED) { + } else if (vmx_info->assist_state == VMXASSIST_ENABLED) { /* restore old context */ vmx_restore_world_ctx(info, old_ctx); - vmx_info->state = VMXASSIST_DISABLED; + vmx_info->assist_state = VMXASSIST_DISABLED; } return 0;