Puneet Lakhina
2010-May-18 18:25 UTC
[Xen-users] Core Dump of a 64 bit domU from 32 bit dom0
Hi, I have a setup in which the hypervisor and my domU are 64 bit but the dom0 is 32 bit. Now when I try to core dump my domU from the dom0, the ".xen_prstatus" section of the elf file contains data based on 32 bit struct sizes instead of 64 bit struct sizes (vcpu_guest_context * noOfVcpus). That is the size of that section is 2800 * no of vcpus (http://lxr.xensource.com/lxr/source/tools/include/xen-foreign/reference.size) instead of 5168 * no of cpus. Is there any way to get the right data in the core dump file? -- Regards, Puneet http://www.cs.ucsb.edu/~puneet _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Puneet Lakhina
2010-May-20 17:18 UTC
[Xen-users] Re: Core Dump of a 64 bit domU from 32 bit dom0
For anyone who stumbles on this, there is a patch that fixes the issue. http://old.nabble.com/-xen-unstable--libxc:-Fix-32-vs-64-bitness-issue-in-saving-vcpu-contexts-in-core-dump-td26528092.html On Tue, May 18, 2010 at 11:25, Puneet Lakhina <puneet.lakhina@gmail.com> wrote:> Hi, > > I have a setup in which the hypervisor and my domU are 64 bit but the > dom0 is 32 bit. Now when I try to core dump my domU from the dom0, the > ".xen_prstatus" section of the elf file contains data based on 32 bit > struct sizes instead of 64 bit struct sizes (vcpu_guest_context * > noOfVcpus). That is the size of that section is 2800 * no of vcpus > (http://lxr.xensource.com/lxr/source/tools/include/xen-foreign/reference.size) > instead of 5168 * no of cpus. > > Is there any way to get the right data in the core dump file? > > -- > Regards, > Puneet > http://www.cs.ucsb.edu/~puneet >-- Regards, Puneet http://www.cs.ucsb.edu/~puneet _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users