Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp118259imm; Fri, 21 Sep 2018 11:17:51 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda5itok6FfpfB0jffKWRfJVu/lMk6dRWC/QYklBcCSlT1s3v4GYYQaGp9ymxOnPv20dLH/0 X-Received: by 2002:a17:902:7145:: with SMTP id u5-v6mr45940765plm.259.1537553871486; Fri, 21 Sep 2018 11:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537553871; cv=none; d=google.com; s=arc-20160816; b=bllhCiGrYwsI868xbe5w01rFTRVX9f0qtuW81EfrsHJLDCtRCF/S7rU1je6kwqEu/q xMdZVaLYga+oK1rNQGMEW0ueYBbhkH9/rO1PddHGdX3QplIp29Ucao7k3VPNdQIfvX0X gd1+M+rJ2B0lhA9lxJuzX0Ez58srTAttqgj8i8KKXjPhKiVE3WIJz/fKbiCgR1+TY7Qq d0IkFhOnE/OhG5R8txNUPi4/e12TqpvXh/7fHR0HDVHknUK+CaqTD39cQ/JDrZqCLdLU OaKHLMBrxqUEN6Fi3Zx+d0vrT70TlYeOjtM38eYlaBGPs4ERjYEv3KotoKQeqQ9K7ihh sLPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=v0bpQO4OEAdC9kjVhyPT67HWRb0inNp8Z3gSwFnIbFg=; b=jsf7LamvMi3rCOeDYaHa+l7Odbsi4PyLUo/4bm5S3tsB6AiYVsGRzSvDjYjjEuAnG8 2SearwIS2uLLR196KmOKfB1KU1q5D0udmv3NWXuU0GjSU9MDl+JAaPkV5w0dlt1uvS2G NfTOSEEJraYN8qyjFhHoSlmgaR68N06OIQXWR7nAqkzAsNyqyJJb1a6dyfBeaYYPh9eO 3N+1/EWnuos/v2zLetJLr0w5larvhSLbrZoCLeLt12x7JqnaDdrG4MLAdH38v2XMZyDG CdVUXuLHWR4qdWIfjRYCWz3mzXYSN3QBbvtUF7L96Av58HE80sM26sAxSLutxjl8uQwn VWHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="R/OTCBeu"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n62-v6si4998906pga.609.2018.09.21.11.17.34; Fri, 21 Sep 2018 11:17:51 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="R/OTCBeu"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391082AbeIVAH2 (ORCPT + 99 others); Fri, 21 Sep 2018 20:07:28 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:35342 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732114AbeIVAH2 (ORCPT ); Fri, 21 Sep 2018 20:07:28 -0400 Received: by mail-oi0-f68.google.com with SMTP id m11-v6so12182598oic.2 for ; Fri, 21 Sep 2018 11:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v0bpQO4OEAdC9kjVhyPT67HWRb0inNp8Z3gSwFnIbFg=; b=R/OTCBeuSTesD/MtlMtCjIyqpuP7Uv4TOGSkK9OdT2umr/HypMxHgUnrqAYPKe6PiF 9bkQQfq7L52q9UXIWNzH+PcGwooH34FXm4yjdKz4dODtcb10PtGP4V154umUP7AboLmM fL47BXOG0tKlFwYhbP5M/4SCuTPaNEOJPGeJjt2bPQXi6dccyUnVwWPB1YLELoKzS2TK Cp7ox4n45fMy4/ARz/RLJTBte/9hK+tnp/68Q8mfIvHWdFfJcNA251yxFSjJvy1OR8xQ ww2PCcN2HhmLAyQdXpybkPUN/Nru9AtL9Cx7wTpAVbVibU3OT9fm6wu4W9t00FKLD4Rz FASA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v0bpQO4OEAdC9kjVhyPT67HWRb0inNp8Z3gSwFnIbFg=; b=HGct8LfXXmMkSNZEOU0274vEYHSuhyeW19tppDTDro4lpQdf/wOUvGWywqECXptUIO DCBbP5uQSyQUXC6Ueng5ioCe1gydTxmH75DW82d+M1pIlCCGK8AoMefuMEX2yTQFsaKg 1bBHTJi21n6Y46kxizwmeSHboOl3UdpXDGNlUXuCvaYvFd5lgqIcitWuPvgOEbJVV8yk 5fSg68MQAoDPlHpGc4fZSz9Qlt1+ePStszxgODcjCzS/bkI77hxrStwjQ7UIFr3hx2ob noPEnm7eN5hJvu8AOqlrGF5sXq4Q+EJgDFBdiH/UR8uFlSAaeNjsexzRszfWVsB3KsNX Z2PQ== X-Gm-Message-State: APzg51B7j0JhgJCjcg8Gw9ExI/w1KiTxtXseVcBJtn5P65qyyjdjDMvM zBG1u5XVoxnuQJFk72zXOpsyqy3LzOV8IzW03dpL5w== X-Received: by 2002:aca:ce02:: with SMTP id e2-v6mr2255152oig.225.1537553844521; Fri, 21 Sep 2018 11:17:24 -0700 (PDT) MIME-Version: 1.0 References: <4e8c2e0facd46cfaf4ab79e19c9115958ab6f218.1536342881.git.yi.z.zhang@linux.intel.com> <20180920224953.GA53363@tiger-server> <20180921224739.GA33892@tiger-server> In-Reply-To: From: Dan Williams Date: Fri, 21 Sep 2018 11:17:13 -0700 Message-ID: Subject: Re: [PATCH V5 4/4] kvm: add a check if pfn is from NVDIMM pmem. To: David Hildenbrand 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?SsOpcsO0bWUgR2xpc3Nl?= , "Zhang, Yi Z" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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().