search for: __vmxoff

Displaying 1 result from an estimated 1 matches for "__vmxoff".

2006 Sep 29
1
[PATCH] hvm: clear vmxe if vmxoff
...> --- 0001/xen/arch/x86/hvm/vmx/vmx.c +++ work/xen/arch/x86/hvm/vmx/vmx.c 2006-09-29 14:49:55.000000000 +0900 @@ -485,8 +485,10 @@ static void vmx_ctxt_switch_to(struct vc static void stop_vmx(void) { - if (read_cr4() & X86_CR4_VMXE) + if (read_cr4() & X86_CR4_VMXE) { __vmxoff(); + clear_in_cr4(X86_CR4_VMXE); + } } void vmx_migrate_timers(struct vcpu *v) @@ -806,12 +808,14 @@ int start_vmx(void) if ( (vmcs = vmx_alloc_host_vmcs()) == NULL ) { + clear_in_cr4(X86_CR4_VMXE); printk("Failed to allocate host VMCS\n");...