Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3191428pxk; Mon, 28 Sep 2020 10:33:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww0MGTMiKcpK/bDb5dU+HSyq6aEu6WbKkGZ2eAOwBuLo+lYbyJrw2p5KaTwSRjj5mldX3D X-Received: by 2002:a05:6402:326:: with SMTP id q6mr3029636edw.216.1601314392455; Mon, 28 Sep 2020 10:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601314392; cv=none; d=google.com; s=arc-20160816; b=oJtswzG43li15oElMdRwgxYYTdVmT2Tq7zs+ArKodRM68rgMmg/3/jC7RtOQZ4OXhC SBvXMeARgnYDCrvftGYq2LwsvNJo2VbdyqvKQD8XMsH/ygk+xswVgIqqazTmFrUTh7M4 1i+NHMt/Vl6vZc4hevYpE8WU+I52VBFjqvlpZzZMlchfSpcLTBN8HyyRkphn7Vio1vee ex+TBG9oP4vUh18Tv6rO96atIrb1TN8frNxG/uAELDU8HLd4NB/4dD5z1siapvYq/pYZ LNAC+6hMp0Eqylv27jmCCko5xEfAl4Io5X1A9QYqV7v5YtpDyj+TovzFCQhiG2yeArDd tWFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=BmBUVhbY8uYL/9rFspjmnabiru47MygeGdBGbv0g4Ck=; b=jbsiKL9bE+bsGb8TPjP3gr35pwybof9tV+YOZasqAFp43j+N8PQVxF78/liRxDVgJc 6LNE0uWyUgAfKeZXNnNfCI9RsAK8cRw2LSo6tzMoL5dU/QM0WM3KYDrTsAB/TqEKz/Zq BdNIsWFxPupvLp3fK7GpCcGUP/sUfOyIoRl/o2wRk8QM2MePVD4aY7o+bxtKhjc3rMCT efNb0cYCxGc8V4m6RbmFSL1bA+s2A0vlQiJXjv6pmtq3ITY4DXlj7/zihUxevTBIL+W3 pnqeUEnsGVOuEGq0tX1kPQhigZRn3ZQmAK+g+cogsEIK5czEKWhA6je/Jk6AZ+SQXYzZ HBJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Gf1QhuG8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si1276430edx.167.2020.09.28.10.32.49; Mon, 28 Sep 2020 10:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Gf1QhuG8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbgI1RbW (ORCPT + 99 others); Mon, 28 Sep 2020 13:31:22 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:47428 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726424AbgI1RbW (ORCPT ); Mon, 28 Sep 2020 13:31:22 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601314280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BmBUVhbY8uYL/9rFspjmnabiru47MygeGdBGbv0g4Ck=; b=Gf1QhuG8VDc3j4fGSDk8VTVDb06zDu8NAbNuH2CNddpcFY/d4SmLrZsNsclHD+EJGfD8OU Yfzuzv2YZJhM6LnUvaPFhir5aHNeGeHy93r7qPx2ZkSS+wMipv3GgT49dgqFo1f5+uCc+r 9kCDzAZ/bxDygZDCMO9VpYg8Y4R4sx4= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-166-Muptm3PpNK-M33ylwNMP2g-1; Mon, 28 Sep 2020 13:31:15 -0400 X-MC-Unique: Muptm3PpNK-M33ylwNMP2g-1 Received: by mail-wr1-f72.google.com with SMTP id a12so674752wrg.13 for ; Mon, 28 Sep 2020 10:31:15 -0700 (PDT) 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=BmBUVhbY8uYL/9rFspjmnabiru47MygeGdBGbv0g4Ck=; b=JRsxcKKkvFNEMjv9fRsmCiwgDFR2gjGMrtyHV5C3pg+3o588VtO4yi/bo0e5aAoDW7 eaufE3RgfMiSj8J0DxjhFp6FS3DufzJCHEqEzij0dgHjcYVVgCJ7ofkOo8lSCCY3iFLI ytd7r4ooDaRo1FEAub/WIEM7zxex6XgkqneXcE6Fno8KDda+Sz43l9rhjj229hw9V7kT oLd0Ycs1w6viBoecCNQFGnbmmDM7KBJuCG5KPK/XgagSFW07d0voplOuf4o0a72snZxU rjaiuIJRHFzo/Sj/NigwGA7eDL53qL8ToNYdUcT0NZeFttEJ5vQIulLYJKtoa+uI61Ig 51yA== X-Gm-Message-State: AOAM531zY2HL3xvYYl6pRmjT+ds9QIwI1iUY0YgJpp4RLhHNCe05R5ec x1SoX1FaRHNnBaJtN5ux5dZPOfVSdj7Iya9tT15AhqH+vmppGPW/bvHDfJV6p+AS79zXHUv62y8 EsEiFKxN3x+wFqjjoe3bDOWDy X-Received: by 2002:a7b:cb17:: with SMTP id u23mr262383wmj.166.1601314274218; Mon, 28 Sep 2020 10:31:14 -0700 (PDT) X-Received: by 2002:a7b:cb17:: with SMTP id u23mr262350wmj.166.1601314273923; Mon, 28 Sep 2020 10:31:13 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:f4f8:dc3e:26e3:38c7? ([2001:b07:6468:f312:f4f8:dc3e:26e3:38c7]) by smtp.gmail.com with ESMTPSA id f6sm2225248wro.5.2020.09.28.10.31.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Sep 2020 10:31:12 -0700 (PDT) Subject: Re: [PATCH 00/22] Introduce the TDP MMU To: Ben Gardon , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Cannon Matthews , Peter Xu , Sean Christopherson , Peter Shier , Peter Feiner , Junaid Shahid , Jim Mattson , Yulei Zhang , Wanpeng Li , Vitaly Kuznetsov , Xiao Guangrong References: <20200925212302.3979661-1-bgardon@google.com> From: Paolo Bonzini Message-ID: <425b098c-dbe0-d614-8e62-1f50b2f63272@redhat.com> Date: Mon, 28 Sep 2020 19:31:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200925212302.3979661-1-bgardon@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/09/20 23:22, Ben Gardon wrote: > This series is the first of two. In this series we add a basic > implementation of the TDP MMU. In the next series we will improve the > performance of the TDP MMU and allow it to execute MMU operations > in parallel. I have finished rebasing and adding a few cleanups on top, but I don't have time to test it today. I think the changes shouldn't get too much in the way of the second series, but I've also pushed your v1 unmodified to kvm/tdp-mmu for future convenience. I'll await for your feedback in the meanwhile! One feature that I noticed is missing is the shrinker. What are your plans (or opinions) around it? Also, the code generally assume a 64-bit CPU (i.e. that writes to 64-bit PTEs are atomic). That is not a big issue, it just needs a small change on top to make the TDP MMU conditional on CONFIG_X86_64. Thanks, Paolo