[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86 hvm: Fix bootstrapped boolean check in start_{svm, vmx}().
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1245318381 -3600 # Node ID af06333d4c5d8aeb629e80163cc3707a6625d1cf # Parent 8440fc9f7a25fe4b35f82a3123c7a4145b54b721 x86 hvm: Fix bootstrapped boolean check in start_{svm,vmx}(). Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- xen/arch/x86/hvm/svm/svm.c | 2 +- xen/arch/x86/hvm/vmx/vmx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -r 8440fc9f7a25 -r af06333d4c5d xen/arch/x86/hvm/svm/svm.c --- a/xen/arch/x86/hvm/svm/svm.c Thu Jun 18 10:31:17 2009 +0100 +++ b/xen/arch/x86/hvm/svm/svm.c Thu Jun 18 10:46:21 2009 +0100 @@ -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 -r 8440fc9f7a25 -r af06333d4c5d xen/arch/x86/hvm/vmx/vmx.c --- a/xen/arch/x86/hvm/vmx/vmx.c Thu Jun 18 10:31:17 2009 +0100 +++ b/xen/arch/x86/hvm/vmx/vmx.c Thu Jun 18 10:46:21 2009 +0100 @@ -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() ) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |