From nobody Mon Feb 9 19:07:28 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 1541541408657306.2710978587886; Tue, 6 Nov 2018 13:56:48 -0800 (PST) Received: from localhost ([::1]:43956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK9L5-0006ZM-4l for importer@patchew.org; Tue, 06 Nov 2018 16:56:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK9DH-0005fz-3U 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 1gK93S-000193-55 for qemu-devel@nongnu.org; Tue, 06 Nov 2018 16:38:36 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:41478) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gK93R-0000Ij-Ms for qemu-devel@nongnu.org; Tue, 06 Nov 2018 16:38:33 -0500 Received: by mail-wr1-x433.google.com with SMTP id x12-v6so15202021wrw.8 for ; Tue, 06 Nov 2018 13:38:17 -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.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 13:38:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6LdTnBLqKTM1XT/evXBfPJzhbQbljIrrP+C/UHHmOk4=; b=bRoZEedpWgKWe5NkyMnrEnSZLiNpdvtBNcbmQjHOdHyvSiQcFlf0R+0izRJI0f6o10 rBxZ1EhpeNQ+CZvixGqtyyjacQpySDYemhE/HXcc482SL7wxfbiTK0jiOj9P/xphOFhM 8vb3U0eo4gwB5RcpN/xmgcPmIyLokv5B+Bb52XFGMT1PrhFP1iDfC02R3MhNISDXFuqP PZY8YincJTv19xdjT5i+d894gnAFVSmbwIQOA4LFcBJE62dptj3Sbztv5Wg4GmDwAsUL OJ0W7oCym5xht+fvvdgYBdHJ61AEQwktXTpc36JJh0Q3jIKfCQ/qa7lmbsIfA7xjKItc /VFA== 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:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=6LdTnBLqKTM1XT/evXBfPJzhbQbljIrrP+C/UHHmOk4=; b=MJ5xfhPWT26pkX3BoZo6W1WGPrwFPKVPgHTL1TJ6Q1neYl6/A8zi+hGdOupUBG/n7r NBqNJAuthKKSJwl8OFKw5D1N2kAbTRWdOcsC5SpOxHPOX8qPKIc95Mugc+/clmIsXEfv aMQsSa+PW7N9JEulTthQA1OZqQ745BsuyuGHCKqMrhOcIX25IF/ixS52mjqiOpjUyH/B fD+JDW2EiU912WSpFWcsqGoeM5zOYe5osevWXd0Q6WFGgHLBQbEXlZcPWVExm4rqjO8Q bROfhPKy7zzr8OB1YGXK0vVZ2XtqUHf8Gz1HO9S/0iL+OjJoOSHWmHg7S3bKMwsRC7K9 JoQA== X-Gm-Message-State: AGRZ1gJ4o1AuN5nGMPquS89hApCeYBKBGYQvQUg4+vT57i1Cr5ty/PBN IUzXG2wxVFJWYb+KA2cOoQaNAxtW X-Google-Smtp-Source: AJdET5eKfaWXWHp0Rf5DVYPsxBxksDyIlx2qXJHZadGb4iy+g4V3lJWTO7GVQPEt68KXg8l7Z2oVWA== X-Received: by 2002:a5d:6901:: with SMTP id t1-v6mr5629384wru.210.1541540296264; Tue, 06 Nov 2018 13:38:16 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 6 Nov 2018 22:37:55 +0100 Message-Id: <1541540283-45699-10-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::433 Subject: [Qemu-devel] [PULL 09/17] memory-mapping: skip non-volatile memory regions in GuestPhysBlockList 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: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Marc-Andr=C3=A9 Lureau GuestPhysBlockList is currently used to produce dumps. Given the size and the typical usage of NVDIMM for storage, they are not a good idea to have in the dumps. We may want to have an extra dump option to include them. For now, skip non-volatile regions. The TCG memory clear function is going to use the GuestPhysBlockList as well, and will thus skip NVDIMM for similar reasons. Signed-off-by: Marc-Andr=C3=A9 Lureau Message-Id: <20181003114454.5662-4-marcandre.lureau@redhat.com> Reviewed-by: Laszlo Ersek Reviewed-by: David Hildenbrand Signed-off-by: Paolo Bonzini --- memory_mapping.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/memory_mapping.c b/memory_mapping.c index 775466f..724dd0b 100644 --- a/memory_mapping.c +++ b/memory_mapping.c @@ -206,7 +206,8 @@ static void guest_phys_blocks_region_add(MemoryListener= *listener, =20 /* we only care about RAM */ if (!memory_region_is_ram(section->mr) || - memory_region_is_ram_device(section->mr)) { + memory_region_is_ram_device(section->mr) || + memory_region_is_nonvolatile(section->mr)) { return; } =20 --=20 1.8.3.1