Received: from eggs.gnu.org ([2001:4830:134:3::10]:54260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7hbt-00015g-OW for qemu-devel@nongnu.org; Wed, 03 Oct 2018 09:54:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7hbo-0003SB-OI for qemu-devel@nongnu.org; Wed, 03 Oct 2018 09:54:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22919) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g7hbo-0003Rc-IW for qemu-devel@nongnu.org; Wed, 03 Oct 2018 09:54:36 -0400 References: <20181003114454.5662-1-marcandre.lureau@redhat.com> <20181003114454.5662-4-marcandre.lureau@redhat.com> From: Laszlo Ersek Message-ID: <9fa8a684-8d5d-1644-3aee-86a196d31f8d@redhat.com> Date: Wed, 3 Oct 2018 15:54:26 +0200 MIME-Version: 1.0 In-Reply-To: <20181003114454.5662-4-marcandre.lureau@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 3/3] memory-mapping: skip non-volatile memory regions in GuestPhysBlockList List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , qemu-devel@nongnu.org Cc: Paolo Bonzini , Igor Mammedov , "Dr. David Alan Gilbert" , Xiao Guangrong , Juan Quintela , "Michael S. Tsirkin" On 10/03/18 13:44, Marc-Andr=C3=A9 Lureau wrote: > 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. >=20 > The TCG memory clear function is going to use the GuestPhysBlockList > as well, and will thus skip NVDIMM for similar reasons. >=20 > Cc: lersek@redhat.com > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > memory_mapping.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/memory_mapping.c b/memory_mapping.c > index 775466f3a8..724dd0b417 100644 > --- a/memory_mapping.c > +++ b/memory_mapping.c > @@ -206,7 +206,8 @@ static void guest_phys_blocks_region_add(MemoryList= ener *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 I've peeked at the first two patches as well. Seems OK to me. (Famous last words?) Reviewed-by: Laszlo Ersek