[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86 svm: Fix svm_update_guest_efer() after c/s 19856.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1246287032 -3600
# Node ID 7397608bce877b151ee507413a8e228092947ee4
# Parent  388578e1626e78f50b1d9ca377ba38d592610cc1
x86 svm: Fix svm_update_guest_efer() after c/s 19856.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/hvm/svm/svm.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 388578e1626e -r 7397608bce87 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c        Mon Jun 29 11:03:24 2009 +0100
+++ b/xen/arch/x86/hvm/svm/svm.c        Mon Jun 29 15:50:32 2009 +0100
@@ -452,7 +452,7 @@ static void svm_update_guest_efer(struct
 static void svm_update_guest_efer(struct vcpu *v)
 {
     struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb;
-    bool_t lma = v->arch.hvm_vcpu.guest_efer & EFER_LMA;
+    bool_t lma = !!(v->arch.hvm_vcpu.guest_efer & EFER_LMA);
 
     vmcb->efer = (v->arch.hvm_vcpu.guest_efer | EFER_SVME) & ~EFER_LME;
     if ( lma )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.