From nobody Thu Nov 6 12:12:21 2025 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 (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1540929675075202.9877101255296; Tue, 30 Oct 2018 13:01:15 -0700 (PDT) Received: from localhost ([::1]:55271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHaCP-0000SR-Bd for importer@patchew.org; Tue, 30 Oct 2018 16:01:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHa2A-00083w-Ud for qemu-devel@nongnu.org; Tue, 30 Oct 2018 15:50:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHa29-0002Ma-Oa for qemu-devel@nongnu.org; Tue, 30 Oct 2018 15:50:38 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:41580) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHa29-0002KY-Em for qemu-devel@nongnu.org; Tue, 30 Oct 2018 15:50:37 -0400 Received: by mail-wr1-x435.google.com with SMTP id x12-v6so13961008wrw.8 for ; Tue, 30 Oct 2018 12:50:37 -0700 (PDT) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id g76-v6sm17480094wmd.25.2018.10.30.12.50.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 12:50:35 -0700 (PDT) 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=Pr6TH9qoRSEiPeLk5XmuoCRfHi8+xQW3Nmx+sfiS7pY=; b=GyU3wWBY54KsGeAyyMYw+GEC25mtuxMbOotxbCaOHX708N8fBxAH4RkVvnd2hAqHri Tahm+TAroAVF4ORZdIQjxj3aCnFLABNQYPndr+p3Gbh0HBx2mdM0UeCOYpz8I+5zj3RY xUm1KHYus3PQk5Zqre0IDqZYszBpNlUnXkRzicGQb0ghxTOH3pef7qAGzBMF0ss9ChZL LIYFolkvII4VcZbqWIWn04o9HUf/z5xz54Px69CZw3V3blpKLaBxkyqmUfbIwB/bgXQb x/PWc11/fel9gX2QfN3Ap/5FLetqKBO0A1OLtSLfgG5ZKj7eE0/DsogLX4nZRsA9jN5p 87zw== 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=Pr6TH9qoRSEiPeLk5XmuoCRfHi8+xQW3Nmx+sfiS7pY=; b=J4HeUeY6wlbvIUTHfz1iATpckyonc2IxtJ3l1L12rAB4xJHFaokxLczj+M+2I6tCsQ G8RcIqmcK7V8iUM4LNSITTfCqfgEp2J3BS+BnSxqY2qvLqv1/teWpV2n6HIFpL4tViyw I5FcJNXwMJTCi69rtgHtSswbeHQj8CSCbYVujxVNV/+CY67lQ60m6DQ3sBdwtN4wZSvg 8ia7Ccvout+Llt6BZCPYD6611AHh0xV2BVGTuA+NIYCRNcEv6yllrMpFF6ncz3MOAkv5 +K+llGzwr4F8PXfWw6sMQBBZ2lZYxGEBghlxdEJz9g3dbClhkodkLFM8dP0O+opr0743 rP7A== X-Gm-Message-State: AGRZ1gLmonGg2lnFYe5WsqHtsmHwhqmTV58dp0LCbQgMS0i/ArI5bgzB 3ksuK6ZAI5PJJSLeWkK2pkwG5abt X-Google-Smtp-Source: AJdET5f8Kz2yJHeElr3QiQWEwIMdLTmB78syHjx+itdMKpsmrBJoIQud3xuVhjp9xIskf8eZ2mt2bQ== X-Received: by 2002:adf:8b8f:: with SMTP id o15-v6mr70645wra.81.1540929035962; Tue, 30 Oct 2018 12:50:35 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 30 Oct 2018 20:50:10 +0100 Message-Id: <1540929011-19894-10-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1540929011-19894-1-git-send-email-pbonzini@redhat.com> References: <1540929011-19894-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::435 Subject: [Qemu-devel] [PULL 09/10] 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 Reviewed-by: Laszlo Ersek --- 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..f04697b 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