Received: from eggs.gnu.org ([2001:4830:134:3::10]:53268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMaYv-0000bo-Ev for qemu-devel@nongnu.org; Fri, 22 Jan 2016 07:11:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMaYl-0007Oz-37 for qemu-devel@nongnu.org; Fri, 22 Jan 2016 07:11:27 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:37959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMaYk-0007Od-MI for qemu-devel@nongnu.org; Fri, 22 Jan 2016 07:11:22 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 22 Jan 2016 12:11:21 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 089FD1B0804B for ; Fri, 22 Jan 2016 12:11:23 +0000 (GMT) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u0MCBHlZ4456898 for ; Fri, 22 Jan 2016 12:11:17 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u0MCBHnS002083 for ; Fri, 22 Jan 2016 05:11:17 -0700 From: Janosch Frank Date: Fri, 22 Jan 2016 13:08:34 +0100 Message-Id: <1453464520-3882-1-git-send-email-frankja@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/6] scripts/dump-guest-memory.py: Add multi-arch support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, drjones@redhat.com, lersek@redhat.com, frankja@linux.vnet.ibm.com The dump guest memory script for extracting a Linux core from a qemu core is currently limited to amd64 and python 2. With this series we add support for python 3 (while maintaining python 2 support) and add the possibility to extract dumps from VMs with the most common architectures. Tested on X86_64, s390 and Aarch64-le (thanks to Andrew Jones). RFC to PATCH: Tested on X86_64 and Aarch64-le. Fix wrongly indented return in get_guest_phys_blocks(). Fix wrong indent for predecessor_size that happened when copying. Fix inconsistent line wrapping. Fix python 3 compatibility comment being added in the wrong commit. Fix docstrings that get displayed by gdb. Replaced ceil(len_desc / 4.0) with ((len_desc + 3) // 4) Added patch that fixes module docstring to account for moved gdb help string. Janosch Frank (6): scripts/dump-guest-memory.py: Move constants to the top scripts/dump-guest-memory.py: Make methods functions scripts/dump-guest-memory.py: Improve python 3 compatibility scripts/dump-guest-memory.py: Cleanup functions scripts/dump-guest-memory.py: Introduce multi-arch support scripts/dump-guest-memory.py: Fix module docstring scripts/dump-guest-memory.py | 754 +++++++++++++++++++++++++++---------------- 1 file changed, 472 insertions(+), 282 deletions(-) -- 2.3.0