WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] x86 hvm: Fix bootstrapped boolean check i

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86 hvm: Fix bootstrapped boolean check in start_{svm, vmx}().
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Jun 2009 00:57:05 -0700
Delivery-date: Fri, 19 Jun 2009 01:09:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86 hvm: Fix bootstrapped boolean check in start_{svm, vmx}()., Xen patchbot-unstable <=