hvm: Fix migration of 64-bit guests by permitting EFER_LMA to be set
authorKeir Fraser <keir@xensource.com>
Thu, 11 Oct 2007 07:14:11 +0000 (08:14 +0100)
committerKeir Fraser <keir@xensource.com>
Thu, 11 Oct 2007 07:14:11 +0000 (08:14 +0100)
in restored VCPU context.
Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Robert Phillips <rphillips@virtualiron.com>
xen/arch/x86/hvm/hvm.c

index a43ca392b25918117dc7541e744aebc846607c0f..0b8477eb6574e41d8dcdbba0296ad0217a2d82c8 100644 (file)
@@ -358,7 +358,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)) ||