From: Stefan Berger Subject: [PATCH] [LIBXC] Getting extended VCPU context fails (on x86-64) Date: Tue, 27 Nov 2007 00:28:47 -0500 Message-ID: <1196141327.14822.15.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-xOEWVNrmhAU4Dsmbd+Nm" 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 List-Id: xen-devel@lists.xenproject.org --=-xOEWVNrmhAU4Dsmbd+Nm Content-Type: text/plain Content-Transfer-Encoding: 7bit With cs16462 migration fails on x86-64 due to libxc not being able to retrieve the extended VCPU context. The size identifier of the structure is not initialized and xen refuses to give the context in xen/arch/x86/domctl.c line 712. I am not entirely sure whether this size identifier should be surrounded by #ifdefs for x86 and x86-64? Signed-off-by: Stefan Berger --=-xOEWVNrmhAU4Dsmbd+Nm Content-Disposition: attachment; filename=libxc_ext_vcpucontext_size.diff Content-Type: text/x-patch; name=libxc_ext_vcpucontext_size.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/libxc/xc_domain_save.c =================================================================== --- root.orig/xen-unstable.hg/tools/libxc/xc_domain_save.c +++ root/xen-unstable.hg/tools/libxc/xc_domain_save.c @@ -1597,6 +1597,8 @@ int xc_domain_save(int xc_handle, int io domctl.cmd = XEN_DOMCTL_get_ext_vcpucontext; domctl.domain = dom; domctl.u.ext_vcpucontext.vcpu = i; + domctl.u.ext_vcpucontext.size = sizeof(domctl.u.ext_vcpucontext); + if ( xc_domctl(xc_handle, &domctl) < 0 ) { ERROR("No extended context for VCPU%d", i); --=-xOEWVNrmhAU4Dsmbd+Nm 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 --=-xOEWVNrmhAU4Dsmbd+Nm--