From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hildenbrand Subject: Re: [PATCH V5 4/4] kvm: add a check if pfn is from NVDIMM pmem. Date: Fri, 21 Sep 2018 21:29:00 +0200 Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: KVM list , "Zhang, Yu C" , linux-nvdimm , Jan Kara , rkrcmar-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Linux Kernel Mailing List , Linux MM , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Paolo Bonzini , Christoph Hellwig , "Zhang, Yi Z" To: Dan Williams Return-path: In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org Sender: "Linux-nvdimm" List-Id: kvm.vger.kernel.org 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 :) . -- Thanks, David / dhildenb