Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4791592pxk; Wed, 30 Sep 2020 11:46:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2kFIuHOrRAiZ8K4ZqUkObu0y4FD9xf0Wktbdn65iFfXbTZ5eVHpWvpKR3xLqdqea3rxH/ X-Received: by 2002:a17:906:1984:: with SMTP id g4mr4159587ejd.119.1601491584032; Wed, 30 Sep 2020 11:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601491584; cv=none; d=google.com; s=arc-20160816; b=kKsHv65arXLLW+2jSPFoI93G/R1J8U7i+sjPxJHn4YQ7AjGdauOl7RpuJu47S3TqlV 37xtw2pRFTKfmIkFXTjQNlxw8f/qApNoRuX3Pki0zYYfADqkycfXdzT8ru2NR80qaow9 bvI8Bm66MNL9/aMGKZvI5dlUBd+5SHTGDKrtO1shwoD49dPU6L0h2oPIH6d7Aekv2EWa H4+UQvF/gnAU8buYRErE0f26quz7huGshgmdAknsio3nt0f8QTQEN9M31NQEiBEzm1J5 eF4yh+vU2zfs5+900DykOQSUY4geeXvZo+tpkA1s3x9nXAbqT72280VeKK/Kx1egU1C8 arxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=baVH8D4ycog5eLQHQ1VEWx+mLxOlpC3JYeRNA6pOF4M=; b=sa+sk2yoC9f28eX6ZCt+iO7W3OwINtWToIaNZya9YO387LAlWL9h8ZZuMi+TUuNgQw I+TRhMIceNXKkibE2EUPswmH+lHztf+kIEaHLYBqdw40QpXc3zJv7m6+XNgtKXJKoOIS HZ7Qkq+X82vcXJ9UdLs5/xpuNF7VvfUWNQbBG7bNRa9YAdcF6tMik7K7XqN6t5IWUEci AUyzQVNRr5PDjOH0NbjdyfP2HTqZO7Ibi8+xw+kZm0YNS7CmVeTFm79J2wc+yVUQr+P1 GHQHzzClPQkvq+3SbSYZCOFjB1qBaXY3HC8QNnEpMVcSyIL+xu+ngsuB/VYCxQHiQh/8 C2cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BgDX9tTU; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr9si1847107ejb.292.2020.09.30.11.46.01; Wed, 30 Sep 2020 11:46:24 -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=@google.com header.s=20161025 header.b=BgDX9tTU; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728916AbgI3Smy (ORCPT + 99 others); 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-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)