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

[Xen-devel] Discrepancy between size of vcpu_guest_context_t in the core

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Discrepancy between size of vcpu_guest_context_t in the core dump file and using sizeof
From: Puneet Lakhina <puneet.lakhina@xxxxxxxxx>
Date: Wed, 12 May 2010 16:22:18 -0700
Delivery-date: Wed, 12 May 2010 16:23:10 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=vFJYny5YX8XJilJnZ1g8vlVfEo7etbo2e/nQkIQOVjQ=; b=LzgspUJckXI47HvhbV3UAZIZLmKsw8iOIOlkPulI0d5W/YrEQbiRqJNGlz7CxQvHUM c/p0SPA4FrSTeMvnsn7MTFLkzW4aiAa0g+xPPdp1/Cc49Xq4r9PQjImrlV6yPqvmwv0s FxcAeMeZ+jCBOWnJJEFoSxM6zT2hTnyArNiDQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uFABEvQSCp2MeoUeSl+HmD+VsgjHyBdgE11iUV8e87U+JbLjTtyaCqIwOmZCLrCicJ 3GWiHqL7e0yn2PQ2jVIzs4yZu1M/4GiLgfXFZJ8Oo0EykSYIL/9H9YT9jHlqhMky+q7N srMAEmXzNProF3ni7rGiLlOVD5tmtwpHcmqE8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I have a core dump of a xen domain( obtained using $ xm dump-core -C
coredump.dump ) which was run with one vcpu. The size of the
.xen_prstatus is af0 == 2800 bytes. This is inconsistent when I do a
sizeof on the vcpu_guest_context_t data structure which gives me 5168.
I cant understand why this is. Any ideas?

Im running Xen 3.4.0 on x86_64.

$ readelf -W -S coredump.dump
There are 7 section headers, starting at offset 0x40:

Section Headers:
  [Nr] Name              Type            Address          Off    Size
 ES Flg Lk Inf Al
  [ 0]                   NULL            0000000000000000 000000
000000 00      0   0  0
  [ 1] .shstrtab         STRTAB          0000000000000000 10103000
000048 00      0   0  0
  [ 2] .note.Xen         NOTE            0000000000000000 000200
000564 00      0   0  0
*  [ 3] .xen_prstatus     PROGBITS        0000000000000000 000764
000af0 af0      0   0  4
  [ 4] .xen_shared_info  PROGBITS        0000000000000000 001254
001000 1000      0   0  8
  [ 5] .xen_pages        PROGBITS        0000000000000000 003000
10000000 1000      0   0 4096
  [ 6] .xen_p2m          PROGBITS        0000000000000000 10003000
100000 10      0   0  4
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings)
  I (info), L (link order), G (group), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)


-- 
Regards,
Puneet

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Discrepancy between size of vcpu_guest_context_t in the core dump file and using sizeof, Puneet Lakhina <=