Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2099684rda; Tue, 24 Oct 2023 12:15:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEFjY0vJcpZwJ6FXzWxQ1/gLgF3lzxkZYsjXMBZCJ8M8w3VPtG91DMk6Uu9KRozg1mrF2h/ X-Received: by 2002:a17:902:db09:b0:1c0:9b7c:f82a with SMTP id m9-20020a170902db0900b001c09b7cf82amr16216046plx.53.1698174943689; Tue, 24 Oct 2023 12:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698174943; cv=none; d=google.com; s=arc-20160816; b=vObwArBbK/hQ+rt9McHCnT19ZU4NCnLhLJ6pS3sxesmZKvOTY4//WJ2LOsU1JUTDVD cYKlPxinc6eGjYjKtKkGIuRBeHbsDCwwdd4+GZ89Swp1h+WjaLhpQLiE6heRuLhUgoWx a//SLj6Davi6alSVTYjgh8rAQGQxHah8gjE9p8PlMzOGLL2OCo4D6aq4rsguMCgTg+rl DckxaF5yfTolSnxrh1gvayZkqGROesw3gwkyO13GblhnxKF/8uP21f+Yyat5cHda4r9S 6t4eErbtFQjIiOTa+eCkc0jQrgJhlwqFMD7CfKJmfXmnCdspI2INvqevymzbJula5W7I FYrQ== 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=JdRN/5MJBM/LR3Jboog2UEEm4N1T8ZmfUjckQ5zsnPU=; fh=dYVilCVl53yQJLBSbDu2gKoGpHkP/45mXmn+QGPv6Ak=; b=0gNSQSHobsfWddWHxwtAzjLcLMC97qZ7QSxCqE/ZvN+iV/d8erSYujzjXusTSz+a17 XPhHR03uIsiXi8Ft9TZjHrmbhf5JAprLhJdmQxe6BUTpQTmGxOv3KKxDxm3GaWFu+qiG BRe/xtVtnKDUWUe8qz+DU5c6hHJmBo/8sh5jdBN6elwIj0Gvc91E0ZYyhX9Smtg1McdM 1McR/qMKUlWp6xwGazRMBkgnFndvmZ/2jAsTwrjM9MB7RVlWSfHIcJ6yTzP07oDz5c4h ex79tMip+S2E+Q6T2lK72oErGarAKM/CaykxmPTRYrLSEMxgGI3s0ajHVe7N1qFHT5Ja DU/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2023101201 header.b=XzvB6sbo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 4-20020a170902e9c400b001c76a06b5b5si8602344plk.298.2023.10.24.12.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 12:15:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2023101201 header.b=XzvB6sbo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 5BD6F8078315; Tue, 24 Oct 2023 12:15:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344217AbjJXTPE (ORCPT + 99 others); Tue, 24 Oct 2023 15:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232658AbjJXTPE (ORCPT ); Tue, 24 Oct 2023 15:15:04 -0400 Received: from mail.zytor.com (unknown [IPv6:2607:7c80:54:3::138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 068C8109; Tue, 24 Oct 2023 12:15:02 -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 39OJERvQ3400109 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 24 Oct 2023 12:14:28 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 39OJERvQ3400109 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023101201; t=1698174870; bh=JdRN/5MJBM/LR3Jboog2UEEm4N1T8ZmfUjckQ5zsnPU=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=XzvB6sbofNBXw3tkVUrVcKv2C+OIILQqGCQRAgCMRPD8LBmnMW1CYgKpXXHei0kP5 9zW8X/C3SVXfkwus6UfhI0n9e9mlq0F30lcFudjaxCvDgv07QolVOXOxU1It4NnA3p 9gP9Yupsmo+9X/6zzrJ5eqiSypmzNjcC54w259e1ZDY2bwmk77Q1eWU0zfnjysOW8g HAT4pC24RRtwLeDLKbwcYMvkxHx46G2wcIaWU6cMswjvNlplK+kRCW3OeQpHaG1rWH l0Y08WDtOI6RbGWAj1g2SznPDHpNzT2VJ+YJcAS65QnDxCWHbOXTF3inbCwp6t3MKg YDqnenxLabZeA== Date: Tue, 24 Oct 2023 12:14:25 -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> Message-ID: <5B8EB5F2-16A7-47BC-97FE-262ED0169DE3@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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 12:15:21 -0700 (PDT) On October 24, 2023 11:49:07 AM PDT, "Luck, Tony" = wrote: >> the only overhead to modules other than load time (including the runtim= e linking) is that modules can't realistically be mapped using large page e= ntries=2E > >If there were some significant win for using large pages, couldn't the >kernel pre-allocate some 2MB pages in the [-2GiB,0) range? Boot paramete= r >for how many (perhaps two for separate code/data pages)=2E First few load= ed >modules get to use that space until it is all gone=2E > >It would all be quite messy if those modules were later unloaded/reloaded >=2E=2E=2E so there would have to be some compelling benchmarks to justify >the complexity=2E > >That's probably why Peter said "can't realistically"=2E > >-Tony > 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 cre= ate holes in that memory which would have to be managed=2E