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=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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 CBB30C4727C for ; Wed, 30 Sep 2020 18:42:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8FEEE2076B for ; Wed, 30 Sep 2020 18:42:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="BgDX9tTU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729484AbgI3Smy (ORCPT ); Wed, 30 Sep 2020 14:42:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbgI3Smy (ORCPT ); Wed, 30 Sep 2020 14:42:54 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5F2BC0613D0 for ; Wed, 30 Sep 2020 11:42:53 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id e5so2890604ils.10 for ; Wed, 30 Sep 2020 11:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=baVH8D4ycog5eLQHQ1VEWx+mLxOlpC3JYeRNA6pOF4M=; b=BgDX9tTUCb8DXlDo/3vG5xiod+SvtLEWtMf3EqWdYGu1CNpOMYswndy+C26ARLoVjy 87/G/kE6dtE9eb4Cxyczof++WX9+n0obxoHMgJGun3Arzf3R8R80zbdwJXT4VH7pZV4x D4BgPXZcf4MqPDt5d+QP7NP7OhBGp02e4CADYLFlPE13k22wW5zm4GG04Dy0TtJYmC+5 TXQyDR16wU59bKsvgh6Ib9gxL0z3K6aCbC77XdYZyWZrB2/AnDSKPYDxzDG9lGnLCBHL NlYwVTvcGnPGwcZ9QNnOYegfItwqnybyxm2D0vMBa6koVuOjWJs5bj6XCr3dy1DBjM7U H+Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=baVH8D4ycog5eLQHQ1VEWx+mLxOlpC3JYeRNA6pOF4M=; b=CuFFgfkWsh7Urjs2iLYREEJHzuId8/0mRS2pkIl1VvmG/zUEIjIhWtR7g9bdxu8yJK VpWs4EzsZ27a+tOEJ0oZs0v7teQbyzx31/mRa64g9sudREgRuaXkmAK1+wNbYcE5J3eQ XLobnVm3z3yw6g9rNRrEjLzSCeUiYgpqt/BxBG+523MBtOAnK3KZBmZJ50iw8EShoL7h CHu5Y3cunDB+jLRWnnXR10LMAWM+z1FWXsvm/Pljot7gzIfa8iE0Hpi3Yx3JOSCznjfS mbc5f8o/CEABMMI4ltXprXo7KWdMShEZ30n5EsPIYtVSNGXIROr4h9wPVeYV7QtaaQtj XeGQ== X-Gm-Message-State: AOAM531ys8I7I1jOdBfK8hhXo6HZmCGU1BIVKBsSgH8MEmgfsVKLQUzy ylwScVj1Q+NGErXe5uEAVkKynnQ+aKeEeBhcoS6JMw== X-Google-Smtp-Source: ABdhPJxZ/ifnxPqNMAuVGsrBI8knZ5ukEyX/3MLbg0PHpe9uRKkbEaTKhDC47ECxk+6nrXFZVMIlaVHtdL7f7FsKCNk= X-Received: by 2002:a92:5b02:: with SMTP id p2mr2776850ilb.283.1601491372954; Wed, 30 Sep 2020 11:42:52 -0700 (PDT) MIME-Version: 1.0 References: <20200925212302.3979661-1-bgardon@google.com> <20200925212302.3979661-4-bgardon@google.com> <20200930165734.GE32672@linux.intel.com> <2633cc07-f106-25ba-0ab9-d4a422aca171@redhat.com> In-Reply-To: <2633cc07-f106-25ba-0ab9-d4a422aca171@redhat.com> From: Ben Gardon Date: Wed, 30 Sep 2020 11:42:42 -0700 Message-ID: Subject: Re: [PATCH 03/22] kvm: mmu: Init / Uninit the TDP MMU To: Paolo Bonzini Cc: Sean Christopherson , LKML , kvm , Cannon Matthews , Peter Xu , Peter Shier , Peter Feiner , Junaid Shahid , Jim Mattson , Yulei Zhang , Wanpeng Li , Vitaly Kuznetsov , Xiao Guangrong Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 10:39 AM Paolo Bonzini wrote: > > On 30/09/20 18:57, Sean Christopherson wrote: > >> + > >> +static bool __read_mostly tdp_mmu_enabled = true; > >> +module_param_named(tdp_mmu, tdp_mmu_enabled, bool, 0644); > > This param should not exist until the TDP MMU is fully functional, e.g. running > > KVM against "kvm: mmu: Support zapping SPTEs in the TDP MMU" immediately hits a > > BUG() in the rmap code. I haven't wrapped my head around the entire series to > > grok whether it make sense to incrementally enable the TDP MMU, but my gut says > > that's probably non-sensical. > > No, it doesn't. Whether to add the module parameter is kind of > secondary, but I agree it shouldn't be true---not even at the end of > this series, since fast page fault for example is not implemented yet. > > Paolo > I fully agree, sorry about that. I should have at least defaulted the module parameter to false before sending the series out. I'll remedy that in the next patch set. (Unless you beat me to it, Paolo)