Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp208023ybl; Tue, 7 Jan 2020 17:22:11 -0800 (PST) X-Google-Smtp-Source: APXvYqyQ1t8TsW2ZCwl1sViiSJl757rGcoWpAisWXGzNAYr3h0jA+pDfbIt9OwnKzO8p15oVLDPV X-Received: by 2002:a9d:750b:: with SMTP id r11mr2405685otk.209.1578446531723; Tue, 07 Jan 2020 17:22:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578446531; cv=none; d=google.com; s=arc-20160816; b=iA3SLfLn1lTa89iCO7B7bXdEsy/43qfbDSMYzsBybHy2Hn++xrFsEPNA29YuwAGAyd 6k9zwMHPm+loWthkPPv7HoMGWLyjy3OCwNmsXvpV0Nvag5Uuj5/Wdr+jvsuegmxMa/2s C+r0W1AeJJF/OVb2H0iQ1zR9gAAKtar5ro2xOcedA7Z2BDk87ogpOt3W6wKHw91Z3nl0 BLKmKnSn3/L3R3idCgiR8ws1a5CJEHp3PAoYaiTgUt5dfMbosGyho4uT+YyXZ/QSs+ED ASaNIVq0ZbfnPWI8E854ynGaiZxfOa9L/kSoWZbNad/hRqVKMOXNE5YgmSfg+PRklq+O uk8A== 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=FukrxpfYfxYN2Z1vzo1MYJbzZu64uWKKkUq/5NdJ4FY=; b=OQgLNpszr1FuVS1R0+pZQX0/FIsGysZ9/JraZuDplbetXto45qn7QmWH6JnoihUMGl JmrlaFuZrfPiOyIe0jZ6vBhRvlpjNAgE82VFNR/+09VAX3rrtTUVWlJFWmmeXQXCERXs HoUKdAujiTGjMLXRB2+ywgUrajB/Vh/QMdO5laYeWPpGKPt3RzqiCsDrTBO8paj7j/P0 9CoFlP/+5D7cdcftEQ0SzxvcGGxjznXmFOzrZywxw457tiG5fgLFQPxKauD6758cZ+7Y IEaKtE0vogiKIVYkXbameK7PziJrjo6B7OzByRAQ9mpu6MJw3Z6as/gk7aVrsZW8xUs4 wPuQ== 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 i140si1006833oib.90.2020.01.07.17.21.59; Tue, 07 Jan 2020 17:22:11 -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 S1727078AbgAHBUQ (ORCPT + 99 others); Tue, 7 Jan 2020 20:20:16 -0500 Received: from mga05.intel.com ([192.55.52.43]:41392 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbgAHBUP (ORCPT ); Tue, 7 Jan 2020 20:20:15 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jan 2020 17:20:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,408,1571727600"; d="scan'208";a="271694238" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.202]) by FMSMGA003.fm.intel.com with ESMTP; 07 Jan 2020 17:20:15 -0800 Date: Tue, 7 Jan 2020 17:20:15 -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: <20200108012014.GF16987@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> <20200107190522.GA16987@linux.intel.com> <08a36944-ad5a-ca49-99b3-d3908ce0658b@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <08a36944-ad5a-ca49-99b3-d3908ce0658b@google.com> 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 Tue, Jan 07, 2020 at 02:19:06PM -0500, Barret Rhoden wrote: > On 1/7/20 2:05 PM, Sean Christopherson wrote: > >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. > > Nice timing. I was just about to get back to this, so I haven't put any > time in yet. =) > > Please CC me, and I'll try your patches out on my end. Will do. Barring last minute hiccups, the code is ready, just need to finish off a few changelogs. Should get it out early tomorrow. One question that may help avoid some churn: are huge DAX pages not tracked as compound pages? The comment from your/this patch is pretty unequivocal, but I wanted to double check that they will really return false for PageCompound(), as opposed to only returning false for PageTransCompoundMap(). /* * DAX pages do not use compound pages. ... */ Thanks!