From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by kanga.kvack.org (Postfix) with ESMTP id 4B9B26B0003 for ; Fri, 19 Oct 2018 12:33:56 -0400 (EDT) Received: by mail-pg1-f197.google.com with SMTP id t3-v6so25058703pgp.0 for ; Fri, 19 Oct 2018 09:33:56 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id m6-v6sor11652969plt.65.2018.10.19.09.33.54 for (Google Transport Security); Fri, 19 Oct 2018 09:33:54 -0700 (PDT) Date: Fri, 19 Oct 2018 12:33:48 -0400 From: Barret Rhoden Subject: Re: [PATCH V5 4/4] kvm: add a check if pfn is from NVDIMM pmem. Message-ID: <20181019123348.04ee7dd8@gnomeregan.cam.corp.google.com> In-Reply-To: <159bb198-a4a1-0fee-bf57-24c3c28788bd@redhat.com> References: <4e8c2e0facd46cfaf4ab79e19c9115958ab6f218.1536342881.git.yi.z.zhang@linux.intel.com> <20180920224953.GA53363@tiger-server> <20180921224739.GA33892@tiger-server> <159bb198-a4a1-0fee-bf57-24c3c28788bd@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: David Hildenbrand , Dan Williams Cc: KVM list , Linux Kernel Mailing List , linux-nvdimm , Paolo Bonzini , Dave Jiang , "Zhang, Yu C" , Pankaj Gupta , Jan Kara , Christoph Hellwig , Linux MM , rkrcmar@redhat.com, =?UTF-8?B?SsOpcsO0bWU=?= Glisse , "Zhang, Yi Z" On 2018-09-21 at 21:29 David Hildenbrand wrote: > On 21/09/2018 20:17, Dan Williams wrote: > > On Fri, Sep 21, 2018 at 7:24 AM David Hildenbrand wrote: > > [..] > >>> Remove the PageReserved flag sounds more reasonable. > >>> And Could we still have a flag to identify it is a device private memory, or > >>> where these pages coming from? > >> > >> We could use a page type for that or what you proposed. (as I said, we > >> might have to change hibernation code to skip the pages once we drop the > >> reserved flag). > > > > I think it would be reasonable to reject all ZONE_DEVICE pages in > > saveable_page(). > > > > Indeed, that sounds like the easiest solution - guess that answer was > too easy for me to figure out :) . > Just to follow-up, is the plan to clear PageReserved for nvdimm pages instead of the approach taken in this patch set? Or should we special case nvdimm/dax pages in kvm_is_reserved_pfn()? Thanks, Barret