Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp1541059qtg; Tue, 21 Mar 2023 14:42:34 -0700 (PDT) X-Google-Smtp-Source: AK7set+Qfc2bz3FM2StvQ8JdDnPRDTVqqGUSf8euwMspta7e3b7l1IKynU8dtayJRblAFJH69WIX X-Received: by 2002:a17:90a:414f:b0:23d:1bef:8594 with SMTP id m15-20020a17090a414f00b0023d1bef8594mr3709301pjg.1.1679434954482; Tue, 21 Mar 2023 14:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679434954; cv=none; d=google.com; s=arc-20160816; b=dtOj3X8MF/+Im55qIWFaQVFhK6ZmiPqG/npCoz0zmYyx8dInFMrsIPOGls1kcPkg1r wodyRlszslk0BPdiOPjEky0l1t78I0daqqj5+2K7XOKSVg1AeKOomUYEgmRqJAnzYPd+ nvrT0cbxifuklukstoRmTde8wBKHkV57t2KnTS0V1sS+z1TlT5AtV7F+FIcf/VxahE5F ZV3ZYVmcgVRekya8wNOg+DQwIM/v9Rvo8wBKzPZF7Qe/LFPRjFL6kM+UBa1gXuCXsKoI XrQTKVA2npDOj4QuKGZT1RQN1aIIqKyCrx0eRp7SLUxiotIjuwWsZYFQCcUE3t6M/R8e 9p5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date:dkim-signature; bh=G0Rv+FDCbn7GlG8ZYRl57/7tDeYBLpzwRQIrpn91yhA=; b=QWf5BKcWLlZP3Pt2a1vPfg/biNM2ptYWQpDRZ8CfE/VlmB0Au7djWADblSeQJbr7un sT4XmkI370f2o50vXLqcHZDdv9g9pZRau9pJmL1zwfa6KQUQU6gPZZDa4bFJdNf4qjhm AmFVQQTcJtNObnlhCOFFvBA+2U7LoA8JEzjEd4vR7NHikZ25x2I9TaTnl0WDwCAFgpsd 2vwJnlhVGWnNSyDYlaC+nhzt/RXmr22kZhhci5pgSzHdHu46c/7LmHQ8zkRuSVh4wfSX k5dfMUmZoUeN7L42r0QdPuwIhIecp4iCzxUORPIWqoNp0bLi0NULi+nTmz9AqRmb+KyZ gAyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SGuneyhB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gi22-20020a17090b111600b00237b958814fsi13514395pjb.74.2023.03.21.14.42.20; Tue, 21 Mar 2023 14:42:34 -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=@google.com header.s=20210112 header.b=SGuneyhB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229861AbjCUVi0 (ORCPT + 99 others); Tue, 21 Mar 2023 17:38:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbjCUViZ (ORCPT ); Tue, 21 Mar 2023 17:38:25 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96141DBDF for ; Tue, 21 Mar 2023 14:38:24 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id k4-20020a17090aef0400b0023fcccbd7e6so1856630pjz.5 for ; Tue, 21 Mar 2023 14:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679434704; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=G0Rv+FDCbn7GlG8ZYRl57/7tDeYBLpzwRQIrpn91yhA=; b=SGuneyhBonT7AIGMuI+e9aO8lp958VZS9TQHcNvOO0mQKDB1I84+TJ/UvPepRDNdct qTNizvZq81n0b69qICnOZDdkyeJJ2PCjsA8F3LLNq0+LD8uRNa6dCMqKgWFPCOJBbsIQ 4p8jiQK41FKlcp4Du10z5+SR3bMwr5f+nQOwG3hI04LdMqsEsqhjFI8WfQp8gRPPXY1i E1GS2+YzVHH13nE8sTqiCX/P5AsBv5rfAjQO8tK28oWc6SfV+UhYPhtvjhZy4ZqW0L28 cZHcxxtdMfefkvJwYK4LSzDt1JVXaYlLqHtgawwPkwHboNIluET7UoAwH1+92SNQ4/1E 95ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679434704; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=G0Rv+FDCbn7GlG8ZYRl57/7tDeYBLpzwRQIrpn91yhA=; b=idkLsibHe/8upu62SXXmI1Uy/Gi1cGKKd/NP5wVGmbeFzKHi9pxMBgSeVO7Lg5EPh2 1ujHqzaKfJwtUczzq5+lmOc/TJJ07d6aNF97bVSErGeX4D/IQnrsGoOygW6bokAnYerO Ah3l020QKrmRzrL1zStj3qhc3aIlugAt5fh8165oNQXUTC4LoVWyjlvktbCbEkNvA08u IhcIfAG+2j4a29xc0OyyhISesWuNZ4MwA7RpvTvbLBaFMOZLArhfQJ4yxPPX7NAyq49U hBpNqO1yOnzNMCQvpPxzaog9moh6TwRKAUvlRvqdmNzGz03EO1+xa7uFdN9d2o4rWBeM ssnQ== X-Gm-Message-State: AO0yUKWK9hdj7XQVKw82IPC9RC3X2t5+m0GjLfoFMBJcjzCUD4zNHqeE io0A016LOlbVr/QVoLEAWUt+/QckgTc= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a65:66d4:0:b0:507:68f8:4369 with SMTP id c20-20020a6566d4000000b0050768f84369mr121854pgw.12.1679434704147; Tue, 21 Mar 2023 14:38:24 -0700 (PDT) Date: Tue, 21 Mar 2023 14:38:22 -0700 In-Reply-To: Mime-Version: 1.0 References: <20230211014626.3659152-1-vipinsh@google.com> Message-ID: Subject: Re: [Patch v3 0/7] Optimize clear dirty log From: Sean Christopherson To: Vipin Sharma Cc: pbonzini@redhat.com, bgardon@google.com, dmatlack@google.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 Tue, Mar 21, 2023, Sean Christopherson wrote: > It won't. MMU_WARN_ON() is dead code without manual modification to defi= ne MMU_DEBUG. > Part of the reason I used MMU_WARN_ON() was to remind myself to send a pa= tch/series > to overhaul MMU_WARN_ON[*]. My thought/hope is that a Kconfig will allow= developers > and testers to run with a pile of assertions and sanity checks without im= pacting > the runtime overhead for production builds. >=20 > [*] https://lore.kernel.org/all/Yz4Qi7cn7TWTWQjj@google.com/ Ugh, I'm definitely sending that patch, MMU_DEBUG has bitrotted and broken = the build yet again. arch/x86/kvm/mmu/mmu.c: In function =E2=80=98kvm_mmu_free_shadow_page=E2=80= =99: arch/x86/kvm/mmu/mmu.c:1738:15: error: implicit declaration of function =E2= =80=98is_empty_shadow_page=E2=80=99; did you mean =E2=80=98to_shadow_page= =E2=80=99? [-Werror=3Dimplicit-function-declaration] 1738 | MMU_WARN_ON(!is_empty_shadow_page(sp->spt)); | ^~~~~~~~~~~~~~~~~~~~ include/asm-generic/bug.h:110:25: note: in definition of macro =E2=80=98WAR= N_ON_ONCE=E2=80=99 110 | int __ret_warn_on =3D !!(condition); \ | ^~~~~~~~~ arch/x86/kvm/mmu/mmu.c:1738:2: note: in expansion of macro =E2=80=98MMU_WAR= N_ON=E2=80=99 1738 | MMU_WARN_ON(!is_empty_shadow_page(sp->spt)); | ^~~~~~~~~~~