Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp391623imi; Thu, 21 Jul 2022 03:11:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tfFR244hq+0GXTHJI8dpNuddH4Bg6bQNtTQCB+aHS4/iSdVu6gIckXjntFya9Ob/phc+Ku X-Received: by 2002:a63:8049:0:b0:415:d366:7229 with SMTP id j70-20020a638049000000b00415d3667229mr38418948pgd.137.1658398309284; Thu, 21 Jul 2022 03:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658398309; cv=none; d=google.com; s=arc-20160816; b=JHcxlrdpng3Tx251V6PBQRhsBLHk9SyyE9Xihd7PGWu9jyifdz219vL/dLmIWV6roW 4atlI71HdQGYbmCqBGYIWPybfZ/H43/Be6h042XxX4LkMj2trtC89f9OStHSi551/rNg qQw0Eawx0aurkfo5E6TyYGvgLqDynxpotwFJkZN5zJXbM3hOpTXYc4XyEUF6Foc9NU2L hjaN2Y3ag5WaPOL63dbRaj20oq7t6P+ygDpyva/YqMNMlhQEtKNPnyxyfwiUypo4afOe owMwVP490OtPidqgUDbG4CA6CHHqS3wTf/QzVQuCF++jAdiD7SmKu2q6m5rD6RUBfWfW tiPA== 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=fIAx8IOYG+ZSZkE6NQmk+nGqyL9Rc9OjhPo6OZTKiOQ=; b=i4atQ0AY7utrhxOiF9u+at6HAQC+AIOEaADSXjJf3cVPeIFvXdeNHgZWFvOlc4wXFr JauSMiX9OxJId9gpFetQOf60TGZQkxWK/tLztD4stJpwUhb0j+zK0WoH15vMszxJwHPX horcTda0D83aN1T36l34OTXuDPLJRpkD0ex6KZWVfG3JTX7fWW3IjDdkkAeKew9XhzNv i1ktyRQzH24adjDZKQavBgCRsCHDLZzZzJg6ufJnz9a++ClW5+MGCu/RG8nNvXKFocGo twHEqN62BuZjmuorK5/++fX1nF7qAEisWxORDZdJQwVLlny/j0UbQ34ZBrtc7eSXntF1 KImg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Rg2CnC9S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a170903234300b0016413dbbf89si2279262plh.166.2022.07.21.03.11.27; Thu, 21 Jul 2022 03:11:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Rg2CnC9S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbiGUJnf (ORCPT + 99 others); Thu, 21 Jul 2022 05:43:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbiGUJnd (ORCPT ); Thu, 21 Jul 2022 05:43:33 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC81880F6C; Thu, 21 Jul 2022 02:43:32 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id u5so1454246wrm.4; Thu, 21 Jul 2022 02:43:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fIAx8IOYG+ZSZkE6NQmk+nGqyL9Rc9OjhPo6OZTKiOQ=; b=Rg2CnC9S5k5h+qaWOGDFhJ4t9LVz2iHoD3pVZuPdtwah798amJ/pu0aOPrgPEKULOn 37GjMRDhMGorH/g/eBI9yzu7DoUXUYw2FoQD+jHn8HunXpUp4sskcRRCbI3WGDeOtGef poylSkG3lzK4CSSH24iP9IBIyTMOciV//tm2zO/SDHqYoNxSRLp+3Siza0HlsLPX83q7 lgBjjC30gIcOT5ivwldQXbRhcFolMu4ssSQItRimTH3Hb2INjWir30xfeI5Xl56X6RRv lblOOqFWnFiEuBnLkEmU4hDMe3wLowaJBA4Oedm+J7GtTaWWkx3jWj+gD++ATsJNlw9z ZMRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fIAx8IOYG+ZSZkE6NQmk+nGqyL9Rc9OjhPo6OZTKiOQ=; b=fjLSlbcLuHHr7ZxgDC9P92EDu9hrOP0fYjj3W/aIMgXLEDRBR+3YqxqTHbDcdM216x AIeULZ/V/65RWz0lvsdGRp94S4jWBHCwGkFRUfwAulCEYKAtU7f0Cx4GfKvgYURhQfcp npeotUDDO0zFNSRtpk8iZZTMYfQDy4Bc4maPLcnTfl3WaMoHTDUiqlgTADkY0priRD3Z uW8vioWxZfwB4hzPL/9M3c3yiR3RewvRLEOjqtAilUNIfHl43NARFHS2fUHEDhVnNhGM OW4y0vvkAd/uCQtz89xmz/Mb+xaZJ9CL/OurFonA2ZRNAmLhiPE1fjcnAF6SfMaLU11p 4qWQ== X-Gm-Message-State: AJIora+4ROlorfNgYPBieOp2jsclo4fZqeputwVPc2l4+q2xthvBhZKr LDnLsfmC8syXG5lLpp8ptb4fq1HV8vmwCewu0Ensomac3LY= X-Received: by 2002:a05:6000:2cb:b0:21d:7760:778c with SMTP id o11-20020a05600002cb00b0021d7760778cmr35033252wry.329.1658396611355; Thu, 21 Jul 2022 02:43:31 -0700 (PDT) MIME-Version: 1.0 References: <20220605064342.309219-1-jiangshanlai@gmail.com> <20220605064342.309219-8-jiangshanlai@gmail.com> In-Reply-To: From: Lai Jiangshan Date: Thu, 21 Jul 2022 17:43:20 +0800 Message-ID: Subject: Re: [PATCH 07/12] KVM: X86/MMU: Remove the useless struct mmu_page_path To: Sean Christopherson Cc: LKML , "open list:KERNEL VIRTUAL MACHINE FOR MIPS (KVM/mips)" , Paolo Bonzini , Vitaly Kuznetsov , Maxim Levitsky , Lai Jiangshan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 20, 2022 at 4:15 AM Sean Christopherson wrote: > > Nit, s/useless/now-unused, or "no longer used". I associate "useless" in shortlogs > as "this is pointless and always has been pointless", whereas "now-unused" > is likely to be interpreted as "remove as it's no longer used after recent > changes". > > Alternatively, can this patch be squashed with the patch that removes > mmu_pages_clear_parents()? Yeah, it'll be a (much?) larger patch, but leaving > dead code behind is arguably worse. Defined by the C-language and the machine, struct mmu_page_path is used in for_each_sp() and the data is set and updated every iteration. It is not really dead code. Defined by the sematic that we want, gathering unsync pages, we don't need struct mmu_page_path, since the struct is not used by "someone reading it". > > On Sun, Jun 05, 2022, Lai Jiangshan wrote: > > From: Lai Jiangshan > > > > struct mmu_page_path is set and updated but never used since > > mmu_pages_clear_parents() is removed. > > > > Remove it. > > > > Signed-off-by: Lai Jiangshan > > ---