From nobody Thu Nov 6 12:12:20 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 1540929169965437.8122385832701; Tue, 30 Oct 2018 12:52:49 -0700 (PDT) Received: from localhost ([::1]:55219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHa4D-0000l5-CP for importer@patchew.org; Tue, 30 Oct 2018 15:52:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHa28-00082S-Vl for qemu-devel@nongnu.org; Tue, 30 Oct 2018 15:50:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHa26-0002If-Cz for qemu-devel@nongnu.org; Tue, 30 Oct 2018 15:50:36 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:54311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHa26-0002HM-3A for qemu-devel@nongnu.org; Tue, 30 Oct 2018 15:50:34 -0400 Received: by mail-wm1-x329.google.com with SMTP id r63-v6so13004855wma.4 for ; Tue, 30 Oct 2018 12:50:33 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 12:50:30 -0700 (PDT) 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=bXc9Y5T20jd6/2diqrpXhroRAMQ4aJ+tu9EED2aPIn0=; b=mr/GQG5mvJbXLfTfE54sbP+T1a1Br+Jm5DneY0rnHxeIKMDRQHtS2n9fEBICxGiIxg JCbtltsACzuMjo3a5WeDhFAf2oboF9DYzb7L1y0obEAOohTUzwQbjNv0tYwFUJVk29Wz taJ1dm4e9Qgmh1b5OTHUlb2jI8Buw1MgECKPQY+9Va+iFoaDBYdInp7PbtbdhxYS4yLL Dx8HhSi8B2Uo3FinvM2HIYyqjrCqwNDFCryVPXF4qN8LQgWs1BFDe0QptHtLkPBQsbgI SfEGgwBvtdYYIEpoPsSFeOpiAW/WK+Gfj3N7dyZLvJnhrJL2xp7fY1ySnu87JxTZUBMn DPMQ== 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=bXc9Y5T20jd6/2diqrpXhroRAMQ4aJ+tu9EED2aPIn0=; b=TmV/cb6KJR7K9KtcHsxTrB9e6+CMT1O78RL2JNKIM8w04/xu0yO6ggNRDsVJO/LfMI yH0e+T3Jk6bPCjlpkMzgB/xepuGwxMrGobjOfuSDKkpFIImKcBMxeHHn5Ei/ggBMdulz pnVPxwkUOIFixjXU2W/xoBYs5+sBuOCz0TGYY4ZZhAiMZyy4bN7yz2Zl0ZOVcCy52E8J tiDFZ+chjez5Tjz25d5oTE45OCIDY4TN9xN7GiDevYDevK72BXP0sYwanHFFMWtvzQpG U4RiKRsrD4/36dQb6+fi2nxklI83uQvNFw+djD66PCEJo5VUWAoGYXExS+IaP19vMIBh KEQw== X-Gm-Message-State: AGRZ1gKzYz9XbevzacNMmLMxOIZCLUqyZqiQqWf7MLZEOJ12I1t/N+dC FJTZpnZLkkk6ft8eK4wLYfBFGrpz X-Google-Smtp-Source: AJdET5c9VnWXrbUtMyCMevanxfcIo6G6tiKM4tUf1fP/A4g8S7Cr0Jpohc5+gntVZao8/a0CJ214Hg== X-Received: by 2002:a1c:1984:: with SMTP id 126-v6mr64123wmz.7.1540929032468; Tue, 30 Oct 2018 12:50:32 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 30 Oct 2018 20:50:09 +0100 Message-Id: <1540929011-19894-9-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::329 Subject: [Qemu-devel] [PULL 08/10] 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?= , lersek@redhat.com 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. Cc: lersek@redhat.com Signed-off-by: Marc-Andr=C3=A9 Lureau Message-Id: <20181003114454.5662-4-marcandre.lureau@redhat.com> 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