Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2135704rda; Tue, 24 Oct 2023 13:31:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqNFNjQV9rgncyNC/M5HQ6xqk7gCPP7NzyzVvgmXnxiU3NLBIQPBALybQLKLixN66MJA56 X-Received: by 2002:a05:6a20:3955:b0:171:48a1:a85a with SMTP id r21-20020a056a20395500b0017148a1a85amr4512838pzg.23.1698179465936; Tue, 24 Oct 2023 13:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698179465; cv=none; d=google.com; s=arc-20160816; b=Uavr0fzivevhHheOSFqOhsKPT2JMjY9ctqscNrt4d96JUfXGpgnB9BRuDlkNqmnvpL Ie+VA3oUFyDBjtLKbzyqzVXsxvrGZWwklmzTJ0PoMllie6DCn+iJK4sW2Pf37r4kVTAU nSL3auryghqhha8asxY1gOjm3SKHtoQN2CvJD8FP+spwvSWty74Yk0FwHr68y0hO5eJ3 V3oPjjkZOVI6LpdroyBxgExLIJHp6wuO1tWU7rTNFMyxXeEipV/3RXo+YXvhSYSnYVnq gAQPYi0yZf3yxJJKj/XI8umyrp0UdxQSBk1iXsNIYO+fTMt6qGC1u6A0dzRn02Y3Yoa/ vlkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=i9nl6v0XQTPlxSQ2dRSWnBYQvkoXzwqM1OBHxFm02uo=; fh=dYVilCVl53yQJLBSbDu2gKoGpHkP/45mXmn+QGPv6Ak=; b=bG5UfqXeto4H2LQ4g8zJqB9s+o8wIwWJySvS+gVJeX7pBKnRfQ0gAvAARGRsqxCkWc TBCz0bsfqQGrEPgf1x9QfG7r8gChFHrwu1XvCYg8VZPuiUtEaGeIo4qHK/8pHFa8S0Is B9+lalkrPByC2i/uYm/moNKZj0jtKrd6OJj/W9bZvvWrraGOnmsssn6ywCPatxwYwaUY HTegwe7vdQNFfiwIMtDEESUmwr2RTa6hm4J9LTgacrKTIIyW3jach5WNCwHoBRahtwVo v3iL1OQ4SzNYvnoGKWNirW0MoOXcrTc2qqaCIiywZwTLXLJVpRUYQBN0u/0gGHKIlcxa 97sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2023101201 header.b="ngQUl/HX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id w9-20020a63f509000000b0059c78eb3fe7si8800331pgh.838.2023.10.24.13.31.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 13:31:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2023101201 header.b="ngQUl/HX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B80B980254E3; Tue, 24 Oct 2023 13:31:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344167AbjJXUaw (ORCPT + 99 others); Tue, 24 Oct 2023 16:30:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234576AbjJXUau (ORCPT ); Tue, 24 Oct 2023 16:30:50 -0400 Received: from mail.zytor.com (unknown [IPv6:2607:7c80:54:3::138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C03AFEA; Tue, 24 Oct 2023 13:30:48 -0700 (PDT) Received: from [127.0.0.1] ([98.35.210.218]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.17.1) with ESMTPSA id 39OKU61w3426385 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 24 Oct 2023 13:30:07 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 39OKU61w3426385 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023101201; t=1698179409; bh=i9nl6v0XQTPlxSQ2dRSWnBYQvkoXzwqM1OBHxFm02uo=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=ngQUl/HXIc/IvUvksoAeojl9Bb4I82VGTs7uPEKlYj4COIE/kqJkOlYt29/vJkQG4 jFHVMeHrCIWVBJYzmmwB5oZ2PNkxFcdUBP77cCX0C6+TsIoBgsmQCwz9eThPJmVqf/ gxl4UHhBM9S58HgkQ22YbMOaUiyL7JwRkVKSPyKgMWrZLqL56+FpiBmV9YZef4Rhic WBeX4WrB8juvYcbZgx9wzx9j3bQFCPt6RHmdJyg2pwlZ6O9oaSfFywOmwKGGLifRkT 8vNyIgQQuhx+YLt/M1nGycwC/OeDq5anb8KvUsHZez5Kgtr62jU0WcIZtyUK/G60zu GoMxkx7t703kw== Date: Tue, 24 Oct 2023 13:30:04 -0700 From: "H. Peter Anvin" To: "Luck, Tony" , Peter Zijlstra , Pawan Gupta CC: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "x86@kernel.org" , Josh Poimboeuf , "Lutomirski, Andy" , Jonathan Corbet , "Christopherson,, Sean" , Paolo Bonzini , "ak@linux.intel.com" , "tim.c.chen@linux.intel.com" , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "kvm@vger.kernel.org" , Alyssa Milburn , Daniel Sneddon , "antonio.gomez.iglesias@linux.intel.com" , "Milburn, Alyssa" Subject: RE: [PATCH v2 1/6] x86/bugs: Add asm helpers for executing VERW User-Agent: K-9 Mail for Android In-Reply-To: References: <20231024-delay-verw-v2-0-f1881340c807@linux.intel.com> <20231024-delay-verw-v2-1-f1881340c807@linux.intel.com> <20231024103601.GH31411@noisy.programming.kicks-ass.net> <20231024163515.aivo2xfmwmbmlm7z@desk> <20231024163621.GD40044@noisy.programming.kicks-ass.net> <20231024164520.osvqo2dja2xhb7kn@desk> <20231024170248.GE40044@noisy.programming.kicks-ass.net> <5B8EB5F2-16A7-47BC-97FE-262ED0169DE3@zytor.com> Message-ID: <49A97ACF-24A3-452C-88A5-0D55F77B7780@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 24 Oct 2023 13:31:03 -0700 (PDT) On October 24, 2023 12:40:02 PM PDT, "Luck, Tony" = wrote: >> Sure it could, but it would mean the kernel is sitting on an average of= 6 MB of unusable memory=2E It would also mean that unloaded modules would = create holes in that memory which would have to be managed=2E > >On my Fedora38 desktop: > >$ lsmod | awk '{ bytes +=3D $2 } END {print bytes/(1024*1024)}' >21=2E0859 > >Lots more than 6MB memory already essentially pinned by loaded modules=2E > >$ head -3 /proc/meminfo >MemTotal: 65507344 kB >MemFree: 56762336 kB >MemAvailable: 63358552 kB > >Pinning 20 or so Mbytes isn't going to make a dent in that free memory=2E > >Managing the holes for unloading/reloading modules adds some complexity = =2E=2E=2E but shouldn't be awful=2E > >If this code managed at finer granularity than "page", it would save some= memory=2E > >$ lsmod | wc -l >123 > >All those modules rounding text/data up to 4K boundaries is wasting a bun= ch of it=2E > >-Tony > > > Sure, but is it worth the effort?