Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp571536ybl; Tue, 7 Jan 2020 11:07:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzRnK5joa9HaMRiKUEvpqZC6jvAsne2Uc07PBmBCLv03EQUGkp5sQuojTn2C44axb3kYmfn X-Received: by 2002:a05:6808:a8e:: with SMTP id q14mr678103oij.173.1578424062672; Tue, 07 Jan 2020 11:07:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578424062; cv=none; d=google.com; s=arc-20160816; b=TvFJWAaTRblBvI6ZBIBzOgb+9mlhM0JZzAYUzUa8b2R9aXHJFq3qY+tahqIvk5G0sw bZt73vjABO/4dRDtlFwCGxRfWB3Khsf88Z3e5ofxvKtrSLS4Fg1STvXzOSLxnaMteVK5 3MxcVo6SNjr3SZ0vtisAUKSuTreRW0Wa8gbv7xHIVIp7B969rKkgBHBklFuODcb0bEvl U4OLcNRKPZA+6ZTKPRl0l2RuEAVPSRX4NL0L6jWvjWyQnnRwk7fwfHDNz+xWXJhhKInB MHCddFOgZwE1Gu5tavWriBOVJMKoylXnV4sR5w2cSqAyhsSo7KkI1OsYyL12arQVDrtg hZZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7+zIJHnlUVlhBwWD010YniJU/WFZot5f+UkILiQHyaE=; b=JkGU32Ozl/PQh1LeTdurszKgGfS3d6Vr+FdyiKTqELl6HRq1mirpsukSNQ6fl1aQ4j ZkayTEuwls+4egwbGkSrijKWWESiI3dzX7gN1B+FRKtFRH8gwbFxFY1AnQz3cjLmVJ3g q2QFOz7q5C438xIWf+WUic1N7QPvlpvd18e/xhLdODDbKUohh/AI34tHSDTpJjMODJGg cpK/3YoczY8FprBIs9lWOcLpGewStZi3GX2bs6b0h2cjXLfY9vqQOlpoW2vCJNkSdNw+ zyD8hf0EsMgv1Zw0xvLNfl7ag3LACZ+TI3bp9yPGU6g81UWFvkg24ES+vSyjOGq4nW9y Fm/g== ARC-Authentication-Results: i=1; mx.google.com; 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 p6si448238oig.88.2020.01.07.11.07.29; Tue, 07 Jan 2020 11:07:42 -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; 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 S1728737AbgAGTFY (ORCPT + 99 others); Tue, 7 Jan 2020 14:05:24 -0500 Received: from mga02.intel.com ([134.134.136.20]:50144 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbgAGTFX (ORCPT ); Tue, 7 Jan 2020 14:05:23 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jan 2020 11:05:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,406,1571727600"; d="scan'208";a="211273575" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.202]) by orsmga007.jf.intel.com with ESMTP; 07 Jan 2020 11:05:22 -0800 Date: Tue, 7 Jan 2020 11:05:22 -0800 From: Sean Christopherson To: Barret Rhoden Cc: Liran Alon , Paolo Bonzini , Dan Williams , David Hildenbrand , Dave Jiang , Alexander Duyck , linux-nvdimm@lists.01.org, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, jason.zeng@intel.com Subject: Re: [PATCH v5 2/2] kvm: Use huge pages for DAX-backed files Message-ID: <20200107190522.GA16987@linux.intel.com> References: <20191212182238.46535-1-brho@google.com> <20191212182238.46535-3-brho@google.com> <06108004-1720-41EB-BCAB-BFA8FEBF4772@oracle.com> <65FB6CC1-3AD2-4D6F-9481-500BD7037203@oracle.com> <20191213171950.GA31552@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 16, 2019 at 11:05:26AM -0500, Barret Rhoden wrote: > On 12/13/19 12:19 PM, Sean Christopherson wrote: > >Teaching thp_adjust() how to handle 1GB wouldn't be a bad thing. It's > >unlikely THP itself will support 1GB pages any time soon, but having the > >logic there wouldn't hurt anything. > > > > Cool. This was my main concern - I didn't want to break THP. > > I'll rework the series based on all of your comments. Hopefully you haven't put too much effort into the rework, because I want to commandeer the proposed changes and use them as the basis for a more aggressive overhaul of KVM's hugepage handling. Ironically, there's a bug in KVM's THP handling that I _think_ can be avoided by using the DAX approach of walking the host PTEs. I'm in the process of testing, hopefully I'll get a series sent out later today. If not, I should at least be able to provide an update.