From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Lively Subject: [PATCH] [HVM] fix 64-bit hvm guest migration Date: Wed, 10 Oct 2007 17:14:18 -0400 Message-ID: <470D40AA.9010700@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090301050006090904090605" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------090301050006090904090605 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi - We (well, Robert) just (earlier today) noticed we couldn't migrate 64-bit guests with the 3.1.1 and unstable hypervisors. The culprit was a too-strict test on guest EFER bits, trivially fixed by the following patch, which applies to both unstable and 3.1.1. Sorry we didn't catch this before today ... Dave The sanity check for ctxt.msr_efer used to fail when EFER_LMA was set. This prevent migration of 64-bit guests. Signed-off-by: David Lively Signed-off-by: Robert Phillips --------------090301050006090904090605 Content-Type: text/x-patch; name="xen-hvm-load-efer-test.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xen-hvm-load-efer-test.patch" diff -r e56402b6e155 xen/arch/x86/hvm/hvm.c --- a/xen/arch/x86/hvm/hvm.c Wed Oct 10 11:37:02 2007 -0400 +++ b/xen/arch/x86/hvm/hvm.c Wed Oct 10 11:37:02 2007 -0400 @@ -389,8 +389,7 @@ static int hvm_load_cpu_ctxt(struct doma ctxt.msr_efer); 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)) || --------------090301050006090904090605 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------090301050006090904090605--