]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
hvm: Fix migration of 64-bit guests by permitting EFER_LMA to be set RELEASE-3.1.1
authorKeir Fraser <keir@xensource.com>
Thu, 11 Oct 2007 07:15:26 +0000 (08:15 +0100)
committerKeir Fraser <keir@xensource.com>
Thu, 11 Oct 2007 07:15:26 +0000 (08:15 +0100)
in restored VCPU context.
Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Robert Phillips <rphillips@virtualiron.com>
xen-unstable changeset:   16087:960a05895a4ac0e9b2e93281b8de57dca568f08a
xen-unstable date:        Thu Oct 11 08:14:11 2007 +0100

xen/arch/x86/hvm/hvm.c

index 9665a525d802d74bffad3f5da6c1ef0381d8e2e4..a15e74a98b26690aefa3df165eecd48325cce097 100644 (file)
@@ -350,7 +350,7 @@ static int hvm_load_cpu_ctxt(struct domain *d, hvm_domain_context_t *h)
         return -EINVAL;
     }
 
-    if ( (ctxt.msr_efer & ~(EFER_LME | EFER_NX | EFER_SCE)) ||
+    if ( (ctxt.msr_efer & ~(EFER_LME | EFER_LMA | EFER_NX | EFER_SCE)) ||
          ((sizeof(long) != 8) && (ctxt.msr_efer & EFER_LME)) ||
          (!cpu_has_nx && (ctxt.msr_efer & EFER_NX)) ||
          (!cpu_has_syscall && (ctxt.msr_efer & EFER_SCE)) ||