Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp584461ybl; Tue, 7 Jan 2020 11:21:29 -0800 (PST) X-Google-Smtp-Source: APXvYqz4RCJwpNU3zlov+SxP7K1IZXD0HRSgvNMprxHsIq4TQ8ep27BI9RAo6ynLnrmWDngSOgFo X-Received: by 2002:a54:4715:: with SMTP id k21mr805769oik.163.1578424889016; Tue, 07 Jan 2020 11:21:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578424889; cv=none; d=google.com; s=arc-20160816; b=AnDoqtlxYRlSoj5JD9N/9PaloqEyJeMopTuRfA0h0XcXzQFcIAaYoyCfnCNLjft+vb NddS9WPB4DQPf4QMYSWQQjOSmtFUcBpdoGdfgVbuWJYI0Sc8Pxmb3EAfE3UHhfLNtiUt yhRQIlZEtTC/5q0JEhWobsRyliamVonjFzol+hSAdHe/oCC1oGawcyU6BiBE9GEzlZU3 okik0dqWPqGPcCu0h9fMQjiSCWe6hG+G9hwJPMijuSgb0kRhEEIfwOJmO85GTf8rPksy DWcmr+eT5oaagpFqCGW+Cp91lRWoVTuG1a0dJrM2DesWWIrT6ALhGVk1UAKoLjZN+U69 jK4A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=TU5y0uOd04v29R1ldy4aCdHRn60AIShQAfhIrYqvct4=; b=ibCix7mNtl0D/a68mi5RY65UZJ5EtgclDFoMXgSrt2H9SZXemVS/c1G0AH3uIZnuTB lu9tNcKH70X5tfnFZ+Fs45G8yq1lE6sMQw4T+lzriBu9ZVQghurELpdxaVBUFlR4qAwp Plbk8sraRas6hU2Ep6M/LxMY8NQ+Nos7d+GBcyxuqv+urgolhwPAwBzblo40TsrvKbiF uLtcVjxpG8mg3HcZfY9QUNkz1PbWM1NaX70i7zQ1dqdrnMjZew2EaaxRYSyzqhFxjX7H gOWZU+5BjiGluxnXos0dOyy3+/p7iKvlOBASzSmZq88w30KTFzU84l9yXpjJoN+/xHQr ZIXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KuhBgkhm; 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 k10si431224oik.276.2020.01.07.11.21.16; Tue, 07 Jan 2020 11:21:29 -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=KuhBgkhm; 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 S1728773AbgAGTTK (ORCPT + 99 others); Tue, 7 Jan 2020 14:19:10 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38008 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728649AbgAGTTJ (ORCPT ); Tue, 7 Jan 2020 14:19:09 -0500 Received: by mail-pf1-f193.google.com with SMTP id x185so336666pfc.5 for ; Tue, 07 Jan 2020 11:19:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TU5y0uOd04v29R1ldy4aCdHRn60AIShQAfhIrYqvct4=; b=KuhBgkhmzY+be0c7oA/ma8hxZhuoHjFirs176QvXXz/8TxiRr6YQ8GknYwFMLw1MtL G5mycKgbz64sOLtaaTynzyLMeFAlctWwoDdtIulNgI4aCVpmcAoiQHuYr8f0bWNv+jqv HMu/z7+GvtaFoAMV6thwF4A7WTUJ9Rh4KO08NaZEOaHv52TRRWsWMRLudoMK6W0PHaJx OIPAG5RU+91Q4CX0/TyPnG7ydKx5ImuveytiD5wUcjBK9KGUXWJ4XHpEaDPSpM9CljDW OiMqRWyN7ID3K0FkcOD4TS+Ieou2h7qp9XyN6u4X/M1xbFRYfk3/iyRYvjiQYb5MpBaN fy4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TU5y0uOd04v29R1ldy4aCdHRn60AIShQAfhIrYqvct4=; b=EojqY7JA/DthqWRPbB3Cay0pTrYsMpAmXzwv3PdPZjgyJ3HF+hHgOdtGCvqqVE1ms8 oD50JprDt876cUqJrk9b2rb6ShCHqTASpb3fyFb/AE1MujKWhqLWcL60h/0DWf4neV3K Ujm1PtPC0WgybL6kouOGnZqVJF/QvIw4nilWkXqLAFttDX4FPU3X4WnzaDyRvM4UNJAj nYfe4aAuyWD5aNuIc18/JaU0AdLBk/0WBETmSpjSNnOa84+P8o5+KDZCo9khBPd2yCed Oq4LoTq6UBYufz058QgM6ViCEFq5+WQgfHb7shSivUbg4uFnglDt2RTE1Nsv/FBTysfc G2yQ== X-Gm-Message-State: APjAAAVKMYaJNV/lLzgsExdd4MOww5eceGj1usPn1HIa1Xiq5vDQ/tya zL4bePfdGpAwp6UP7opDY4anYw== X-Received: by 2002:a62:f94d:: with SMTP id g13mr825176pfm.60.1578424749010; Tue, 07 Jan 2020 11:19:09 -0800 (PST) Received: from gnomeregan01.cam.corp.google.com ([2620:15c:6:14:50b7:ffca:29c4:6488]) by smtp.googlemail.com with ESMTPSA id i2sm485165pgi.94.2020.01.07.11.19.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jan 2020 11:19:08 -0800 (PST) Subject: Re: [PATCH v5 2/2] kvm: Use huge pages for DAX-backed files To: Sean Christopherson 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 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> From: Barret Rhoden Message-ID: <08a36944-ad5a-ca49-99b3-d3908ce0658b@google.com> Date: Tue, 7 Jan 2020 14:19:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200107190522.GA16987@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi - On 1/7/20 2:05 PM, Sean Christopherson wrote: > 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. 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. Thanks, Barret