From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD00CC2D0A8 for ; Mon, 28 Sep 2020 17:31:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8CCAD208D5 for ; Mon, 28 Sep 2020 17:31:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Gf1QhuG8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726670AbgI1RbW (ORCPT ); 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-Google-Smtp-Source: ABdhPJwwaUnnk7NPkByA7LLdvtAfjRG19RKiw8pzMjMqzLNtVXmwZmZHbRHGM9re/YfcV595i17Rww== 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