Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1151273ybl; Thu, 12 Dec 2019 10:23:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxeVwDxJ2kdVhQ05qDtHxFI3eJqUUXV0D+62U3OGoH0Mamfau1g8wp8ARYwN2CJ85AmJjfX X-Received: by 2002:aca:ccd1:: with SMTP id c200mr6185365oig.26.1576175024984; Thu, 12 Dec 2019 10:23:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576175024; cv=none; d=google.com; s=arc-20160816; b=We2iF5HAnc4BIIf6nNFDlufH8QQpEjK2Aa/ouZt4e+GumR4Nhtnxr8oRmyJVbYunIm oUUb0lYqe3WS1qM82UoscEEh9ma3urmrSIDXZ7Hlaq1k5/yJ319aBRD2V5vF2MbvXtLs KChqdVFsa7+NaIJARMOR92Fxr/xG9q2NkEWkAsghZj68XCt8SqmIUxzh75FreYYEeo86 zcTHIGyJ14HyjpVk547s3r2jKcjWm+Z9zOkxNKd6OwNzd7nUP7G47jx7BKcND9L1b81M ++ncRQhsRDGbPkvk1GWk0NXVP6WjrFo4qb8ndkMoL7BN3ntQfojBqNrgEWDaxziy++L8 DgLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=rEnziU9nLlHlYc/tf137lSRc7sdTqh5wg35Mf+C3wB0=; b=aKoPr+GlGceGLcJtp+i2iRi8PV25fvgnWqsHDA63ETspDZ2O+bldt3qV92ZhztLg/Q UrRevonB67lu0QUBRST8TPv2V5eqG1MuZJsdzyphZ/88VRiRRTc4cBoeliKretnuHql9 w+wNe2SEpzyLx+ypukpZscYeepG0HbCRpyJe3Z2oLLIzd6GdDObqj6UJckOPkyu04v7T 9PwYalfIJ7jkJPtDAA72k89EnORJ+hY4DW41VtWSpZTyaQFN0fWHYABAxkqfaj8GPAef sBVnM7icQ263zvETzQ6ONaYDXKLkfRPf2w9lVbhisB3nCijaqEBWxRLECLTK+QI/NBKz i6ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wOmXzfFa; 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 c131si3102910oig.170.2019.12.12.10.23.29; Thu, 12 Dec 2019 10:23:44 -0800 (PST) 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=wOmXzfFa; 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 S1730348AbfLLSWy (ORCPT + 99 others); Thu, 12 Dec 2019 13:22:54 -0500 Received: from mail-qk1-f202.google.com ([209.85.222.202]:45495 "EHLO mail-qk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730168AbfLLSWy (ORCPT ); Thu, 12 Dec 2019 13:22:54 -0500 Received: by mail-qk1-f202.google.com with SMTP id 143so1936570qkg.12 for ; Thu, 12 Dec 2019 10:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=rEnziU9nLlHlYc/tf137lSRc7sdTqh5wg35Mf+C3wB0=; b=wOmXzfFazrugxZCYf410kz6njqqI2ZayPQ3Zp1rCCJAl61eXIHZJMLIXKd7ipcL41R Sm+Wcca2Q6JqgT++kdbvjzbjYq0FYVW/lmi7QB7yJwkVuo4MV424+x+d7yCwKx0ttep0 Lptl32SFvhXt0TyRQZlvv9SqXlyRFpCG1TsG3O7/iQ2t4vkLUnHSfRpXrHshDh35/gFo c/KEVVI0neOaMUy1YUeklfjbepAMeO7ukOv7HLZ0ISIwDFMKd/GAqrrKh7r8JeBNqa+r SbafHPrcaqVH22AN6GG+pQawROsiZA4u3mp/RCCP/9BjFwd9lIMMNNZaOz5x++hHZB3m 2fSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=rEnziU9nLlHlYc/tf137lSRc7sdTqh5wg35Mf+C3wB0=; b=V0PrT5Kny29qS9tFGgbbs49uPEIC7j53NB2ob7LbrrX3jGj2LpwrbfHCmfcxChelwn hVWACmyA8mJb4DBApR3I7XKcG5EA9LrPTqO1qWf9fRkOUfe3OijbdLFQQtKwhYcI/Zuu 44zur+bzQC8yoa7unPdyUUbNek/PSm1fHLQXStYHoJQ7mh2rk4hY3JXoKqM+JeQv3wEz Y+8x1IOY6TuNMqIpTEPdzbVTk7OCcG4BopvE05yVMdV/EcPs1ZAGAz+rLGgJXqZjwb2O ggbyvIwuFlTsEDxk0wq9n5ThIGeHRySo6C1nhAobMzdrbjD42/qIjWQbk+qPQ9V9mgDO mZzQ== X-Gm-Message-State: APjAAAUvMya4mr0WT/qGFOsJP7gD01x9WlQf9SsKYFdQeum8Glqrq2Ll 3+ixjdA4S8IaGoRVqqZoEEICSXyA X-Received: by 2002:ac8:5308:: with SMTP id t8mr8677688qtn.51.1576174973189; Thu, 12 Dec 2019 10:22:53 -0800 (PST) Date: Thu, 12 Dec 2019 13:22:36 -0500 Message-Id: <20191212182238.46535-1-brho@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.24.1.735.g03f4e72817-goog Subject: [PATCH v5 0/2] kvm: Use huge pages for DAX-backed files From: Barret Rhoden To: Paolo Bonzini , Dan Williams , David Hildenbrand , Dave Jiang , Alexander Duyck , Sean Christopherson Cc: linux-nvdimm@lists.01.org, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, jason.zeng@intel.com 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 This patchset allows KVM to map huge pages for DAX-backed files. v4 -> v5: v4: https://lore.kernel.org/lkml/20191211213207.215936-1-brho@google.com/ - Rebased onto kvm/queue - Removed the switch statement and fixed PUD_SIZE; just use dev_pagemap_mapping_shift() > PAGE_SHIFT - Added explanation of parameter changes to patch 1's commit message v3 -> v4: v3: https://lore.kernel.org/lkml/20190404202345.133553-1-brho@google.com/ - Rebased onto linus/master v2 -> v3: v2: https://lore.kernel.org/lkml/20181114215155.259978-1-brho@google.com/ - Updated Acks/Reviewed-by - Rebased onto linux-next v1 -> v2: https://lore.kernel.org/lkml/20181109203921.178363-1-brho@google.com/ - Updated Acks/Reviewed-by - Minor touchups - Added patch to remove redundant PageReserved() check - Rebased onto linux-next RFC/discussion thread: https://lore.kernel.org/lkml/20181029210716.212159-1-brho@google.com/ Barret Rhoden (2): mm: make dev_pagemap_mapping_shift() externally visible kvm: Use huge pages for DAX-backed files arch/x86/kvm/mmu/mmu.c | 31 +++++++++++++++++++++++++++---- include/linux/mm.h | 3 +++ mm/memory-failure.c | 38 +++----------------------------------- mm/util.c | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 39 deletions(-) -- 2.24.0.525.g8f36a354ae-goog