ia64/xen-unstable

changeset 19798:af06333d4c5d

x86 hvm: Fix bootstrapped boolean check in start_{svm,vmx}().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 18 10:46:21 2009 +0100 (2009-06-18)
parents 8440fc9f7a25
children dc0d1200e3f3
files xen/arch/x86/hvm/svm/svm.c xen/arch/x86/hvm/vmx/vmx.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Thu Jun 18 10:31:17 2009 +0100
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Thu Jun 18 10:46:21 2009 +0100
     1.3 @@ -877,7 +877,7 @@ void start_svm(struct cpuinfo_x86 *c)
     1.4  {
     1.5      static bool_t bootstrapped;
     1.6  
     1.7 -    if ( !test_and_set_bool(bootstrapped) )
     1.8 +    if ( test_and_set_bool(bootstrapped) )
     1.9      {
    1.10          if ( hvm_enabled && !svm_cpu_up(c) )
    1.11          {
     2.1 --- a/xen/arch/x86/hvm/vmx/vmx.c	Thu Jun 18 10:31:17 2009 +0100
     2.2 +++ b/xen/arch/x86/hvm/vmx/vmx.c	Thu Jun 18 10:46:21 2009 +0100
     2.3 @@ -1407,7 +1407,7 @@ void start_vmx(void)
     2.4  
     2.5      vmx_save_host_msrs();
     2.6  
     2.7 -    if ( !test_and_set_bool(bootstrapped) )
     2.8 +    if ( test_and_set_bool(bootstrapped) )
     2.9      {
    2.10          if ( hvm_enabled && !vmx_cpu_up() )
    2.11          {