Skip to contentSkip to conversation

Getting extended VCPU context fails (on x86-64)

PATCH New Stefan Berger 1 participant 1 message Nov 27, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Getting extended VCPU context fails (on x86-64)

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?

xen-unstable.hg/tools/libxc/xc_domain_save.c +2 -0
Index: 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);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel