diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-06-18 10:46:21 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-06-18 10:46:21 +0100 |
commit | b90fe59f0c6725158f38778f9005c7908a627211 (patch) | |
tree | 85d5a05590e00a1961a0941454d0c99bdef73b77 | |
parent | 55f3362de4f5ef0534944e688930ae72eed15782 (diff) | |
download | xen-b90fe59f0c6725158f38778f9005c7908a627211.tar.gz xen-b90fe59f0c6725158f38778f9005c7908a627211.tar.bz2 xen-b90fe59f0c6725158f38778f9005c7908a627211.zip |
x86 hvm: Fix bootstrapped boolean check in start_{svm,vmx}().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
-rw-r--r-- | xen/arch/x86/hvm/svm/svm.c | 2 | ||||
-rw-r--r-- | xen/arch/x86/hvm/vmx/vmx.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 154bc270f8..e24e0bdd9a 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -877,7 +877,7 @@ void start_svm(struct cpuinfo_x86 *c) { static bool_t bootstrapped; - if ( !test_and_set_bool(bootstrapped) ) + if ( test_and_set_bool(bootstrapped) ) { if ( hvm_enabled && !svm_cpu_up(c) ) { diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index adab2a93e8..72a324c7c3 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -1407,7 +1407,7 @@ void start_vmx(void) vmx_save_host_msrs(); - if ( !test_and_set_bool(bootstrapped) ) + if ( test_and_set_bool(bootstrapped) ) { if ( hvm_enabled && !vmx_cpu_up() ) { |