From nobody Mon Feb 9 20:34:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1541541595890867.2232853522465; Tue, 6 Nov 2018 13:59:55 -0800 (PST) Received: from localhost ([::1]:44015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK9Nq-0002fJ-F1 for importer@patchew.org; Tue, 06 Nov 2018 16:59:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK9DF-0003Lq-LF for qemu-devel@nongnu.org; Tue, 06 Nov 2018 16:48:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gK93R-00016l-Gc for qemu-devel@nongnu.org; Tue, 06 Nov 2018 16:38:36 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:38348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gK93R-0000MR-4D for qemu-devel@nongnu.org; Tue, 06 Nov 2018 16:38:33 -0500 Received: by mail-wm1-x335.google.com with SMTP id f2-v6so150225wme.3 for ; Tue, 06 Nov 2018 13:38:18 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id l186-v6sm3223526wma.13.2018.11.06.13.38.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 13:38:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ACjNwV1+MwKQA/PPpL4CyEmvEY7lwtsyBF4hWNYo51c=; b=NKjgCeFi5jCjTEOkZ1BoBgBjxIHdPOpXnt+RIiXnmMDV4TLbXwPg4UYAtWQ22xCsss 1wT65Ozgi1XW91hWf+xRq+N2BA3zXYLFNwVLMwyYdQsxUIdM71QFCSC/oofK8qG1w12y XtWQlR+6fmMpwxH7eEaxTmBgeLZN9OtPa1GSkluSzlTZJGiHii9bTwQWKGl6VH0QVE2c /6J2jGOW5uUFG2TyXmRWZ2BgW46iHipY3C641LQu2nSFmv9aQL9FvBNFa7KTWmiO/OQ+ zjDO5VP+wVFssXgXmdc0BriILdgeyJoWTqdVlTJtlZ4zkDciEKSOsHIdWpsL3W1Ap1Ze B3IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ACjNwV1+MwKQA/PPpL4CyEmvEY7lwtsyBF4hWNYo51c=; b=L+cm3qUQ7WZkm6w6P3OsFlE0LFAqRrcgU4bx2dym+DlxXnmL9Q0GEW4iDeCRT++GFY BJoe2fOqFIp1anIprcPTIuFc0SgRJgc0V0VdQYmWFlK3wrv4bia89VSj9clnFeCq7qQf /n77fIPd8bTp72dBX/CMxZyaY/FoRb5Kk+JnRVCdHQjHjroqeN62up2IxzsttEc5o5kj u+uD1cebcc280ZkKNIy+kh1qGxA/yOHDoB+rdIK+RfOyQsMizp6bn1AppftYZb1WCgFg jwCarIKm/RVq6dqvPukUXF7VK0kF3qI3ZGURwlxxWHDU7tjQLcBVPQd73E+v8p2AyH+l 7Zdg== X-Gm-Message-State: AGRZ1gLin33eMJczwnRJintyCKD/k2CGCBmICvzOcLOM3nOA4jn79QA6 7FRMEkUHIqn//+0Tb20+N8KPM2W4 X-Google-Smtp-Source: AJdET5cm3l3UCehd1lvNeLsZsiXJTH+QdI8tWzrjdDg4qB9QhKwyuuxkXWeLdpC4YInySbx9HXnoZQ== X-Received: by 2002:a1c:c284:: with SMTP id s126-v6mr3248429wmf.21.1541540297392; Tue, 06 Nov 2018 13:38:17 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 6 Nov 2018 22:37:56 +0100 Message-Id: <1541540283-45699-11-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1541540283-45699-1-git-send-email-pbonzini@redhat.com> References: <1541540283-45699-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::335 Subject: [Qemu-devel] [PULL 10/17] scripts/dump-guest-memory: Synchronize with guest_phys_blocks_region_add X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Recent patches have removed ram_device and nonvolatile RAM from dump-guest-memory's output. Do the same for dumps that are extracted from a QEMU core file. Reviewed-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Paolo Bonzini --- scripts/dump-guest-memory.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/dump-guest-memory.py b/scripts/dump-guest-memory.py index 5a857ce..198cd0f 100644 --- a/scripts/dump-guest-memory.py +++ b/scripts/dump-guest-memory.py @@ -417,7 +417,9 @@ def get_guest_phys_blocks(): memory_region =3D flat_range["mr"].dereference() =20 # we only care about RAM - if not memory_region["ram"]: + if (not memory_region["ram"] or + memory_region["ram_device"] or + memory_region["nonvolatile"]): continue =20 section_size =3D int128_get64(flat_range["addr"]["size"]) --=20 1.8.3.1