Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3377915imm; Fri, 19 Oct 2018 09:34:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV628HFJ2fxOP3QtW+TA3mEEcxN83noOehFsDdzEQ3bF3IF0ddGOnl/brTcm4mEC0Nlf78oSi X-Received: by 2002:a62:5547:: with SMTP id j68-v6mr35170005pfb.166.1539966875256; Fri, 19 Oct 2018 09:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539966875; cv=none; d=google.com; s=arc-20160816; b=nUSVTMqdyxP4ZJU4aO9tOZShGij5RUtMIb5F5WMwIR6FcCqXK7NswyCwODjsp5/eUk 4UDChZw7mihAtSumoeZ8W67cUjD8+1kj9XA58J1dBmKTPG8Ys11DstlBmw9RwLFqNixJ 1muj0iwPNkVp6m6j+M89YrihyFsko6Zjby9xW9ZZDgd00iF5J7pn5c0qm6BBNfK1N2f+ aq5dWr8JeZn41MAxb3G17kLw6/jGO87ZonsJXsi70yZ4RK/bt1+/OywSjmuLjx3z0fxH 4bHQ8PlF9FmLcJT8nfjgYa4XcnF95kKS6KKboLZ4iAIcQnkqQISjRgVr0bsl0vVaiint mULw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=P6rT+jseijOqZyAZOjRE1+RVxwYDpWc9DUZXD/qeQ8E=; b=dv3Tpg7a1hHJ325y4CzS/NMsMS5OqlgzNl2I5vSTtVJSB0FkJ2V5fgreqHpl2q8XsA WL9lGlrmsBjBMgCmNwl6n+tcJvGSwibg3HJ155zpEjgfah/FEM8qa7hLIy7SYoG1YbDU TJSJlzOkuuUMgrLXP9LayudZOsGxZgqduQO/i+T8/lo2ptcqsL9JZMtisjzTT72vIuSR Dr5jNDQ+l7M1D+V6r8o1NIulGyhhhaU72gXg+nr0/5dP+4BWsLnh8/KBvDmGo8eSLldw MEsvw1IEKXSl0sMTJxEpD8G3dFufVNl3/7wLqFmdjweQlsoAElpXU9ZRdqbz6kDaplLp VTzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cKzx0a8g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18-v6si22857726pgh.523.2018.10.19.09.34.19; Fri, 19 Oct 2018 09:34:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cKzx0a8g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727850AbeJTAkp (ORCPT + 99 others); Fri, 19 Oct 2018 20:40:45 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38206 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727200AbeJTAkp (ORCPT ); Fri, 19 Oct 2018 20:40:45 -0400 Received: by mail-pl1-f195.google.com with SMTP id q19-v6so13014292pll.5 for ; Fri, 19 Oct 2018 09:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=P6rT+jseijOqZyAZOjRE1+RVxwYDpWc9DUZXD/qeQ8E=; b=cKzx0a8gLoFQoud0/fYIKKW8UvqSApTSGx7dimlDLLqyC5GzbQY7KBpTGOuY0TJ44a PqQkiqt6pieOrR/Vkrk5BBxegTc82DjSowz96qPXp9xQES9LW1KKRAW1mQEPKDUo2q4N tOAQcDJ4eDmJcANCnKXgZ8ZEGvXgFQMEY9Kp+fm6qqtDAozjWx29a6U0Bwi3O+bVIq4b wa4uleO06GGcoRJ/GGfNfKfmmURshRwLyTYsC8JAULoX6Wt7Gtswc67Vb6VAnFhGxxUW c9aWx3mrHtpznlnFPeZ/8XSkzN40keKwLOfVNfDwuKBL+DLt1W5HZooFv93jzrqKPBOs VPAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=P6rT+jseijOqZyAZOjRE1+RVxwYDpWc9DUZXD/qeQ8E=; b=evAQhn53BQKD4kcEjnaNeT86FGBD/NCz5ZoARAloflKvDuG4v3ToNea9qqaEdx9xpA 2lTrrQRV1/do5R/UsaaA5fWCsoiYYiEIz8Ie2bZ/+HgDbcgIMNM+Pr6RViBBuevAPFHO SwnnVqQdzdfTyenFJ9dy+2wmT+skIE86kctU0lWppHznuxMgJYIGSebJqqbDZbc5709n PHB5Hev9HdQca0xnzKLAl4SRH2ySS94ndxc6Ejmi2po9YNJZ0ea065et1lRQH6wU5VkB WQ5Oa8Wj7x7A9uVGuyG9Qr/965XQRxsBFskquZZGiPTqjyWrSJn902PtSL0AJvKECF40 gMKw== X-Gm-Message-State: ABuFfog+9qbwz6gky0zWV9fWuiErUkKqxHkh7qMGYBzbunlhpujrecCn tLojjpPpMEIELS44+G6DuLv3Rw== X-Received: by 2002:a17:902:8d95:: with SMTP id v21-v6mr34566893plo.21.1539966834406; Fri, 19 Oct 2018 09:33:54 -0700 (PDT) Received: from gnomeregan.cam.corp.google.com ([2620:15c:6:14:ad22:1cbb:d8fa:7d55]) by smtp.gmail.com with ESMTPSA id n64-v6sm33494880pfi.185.2018.10.19.09.33.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Oct 2018 09:33:54 -0700 (PDT) Date: Fri, 19 Oct 2018 12:33:48 -0400 From: Barret Rhoden 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" 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> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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