WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] dom0cut script patch for x86-64.

To: "Hiromichi Itou" <ito@xxxxxxxx>
Subject: Re: [Xen-devel] dom0cut script patch for x86-64.
From: "Kazuo Moriwaka" <moriwaka@xxxxxxxxx>
Date: Wed, 10 Jan 2007 17:51:55 +0900
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 10 Jan 2007 00:51:39 -0800
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=t1woSZKEcOrABf6TM8RyRBzWuonyJiNMwy4FKWqgV3c559hFmtXUXrYSKIl49MwRjZoEGeRUWOVWEZ8zByd6MZS3QGe5unHVTm+8V5CVi33N7EQ1X9P2NV+CSByRWVwUE7hZ4A2zCRKn6jWyDArJTvfZJDTCOfIeJWq114YCfuw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <57CD925E-6278-4637-8D08-B9FD10FF29D0@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <57CD925E-6278-4637-8D08-B9FD10FF29D0@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello,

I'm sorry for delayed reply.  I just backed from off.

Thank you for your fix.  I applied this patch and add '=' to other
format strings which contain 'L' exclude one case(which need to treat
'int' variable both in 32 and 64 bit environment)

You can get updated tarball from:

http://people.valinux.co.jp/~moriwaka/dumpread/dom0cut-0.1.2.tar.gz

Thanks,

--
Kazuo Moriwaka


On 1/5/07, Hiromichi Itou <ito@xxxxxxxx> wrote:
Hi,

In my environment (x86-64), the following problem occurred by
executing dom0cut script.

# dom0cut_x86.py -oDump2006122801 -dvmcore.2006122801 --target=0 -x/
root/xen-3.0.4-testing.hg/xen/xen-syms -ax86_64 -f

Traceback (most recent call last):
   File "/usr/bin/dom0cut_x86.py", line 174, in ?
     main()
   File "/usr/bin/dom0cut_x86.py", line 165, in main
     domextract(outdump, dump, options.xensyms, domid)
   File "/usr/bin/dom0cut_x86.py", line 43, in domextract
     dom_context = xenimg.get_domain_context(domp)
   File "/usr/lib/python2.3/site-packages/xendump/XenImage.py", line
184, in get_domain_context
     guest_reg.fromXen(regtxt)
   File "/usr/lib/python2.3/site-packages/xendump/Register.py", line
41, in fromXen
     return self.fromString(self.xenfmt, self.xenregs, regstring)
   File "/usr/lib/python2.3/site-packages/xendump/Register.py", line
28, in fromString
     regs = struct.unpack(fmt, regstring)
struct.error: unpack str size does not match format

I checked the size of fmt and regstring.  (fmt is
'QQQQQQQQQQQQQQQLLQHHBBBBQQQQQQQ' in this case.)
struct.calcsize(fmt) was 208. len(regstring) was 200.

The cause of this difference is in the behavior of the struct module
in 64bit environment.
struct.calcsize('L') is expected to become 4. But,struct.calcsize
('L') was 8 in my environment.
This difference can be corrected by adding the first character of the
format string.

An attached patch fix this problem.

Hiromichi Ito



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel





_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>