Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3520676rwb; Fri, 30 Sep 2022 04:57:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM42UVEssC0dTQTsZ3ZUF63K7jptkz9GAxDxuOpUEuvjICilpAp2s+Bdesy9oWPUZOG/OfZH X-Received: by 2002:a17:902:d48e:b0:178:b5d:ab3 with SMTP id c14-20020a170902d48e00b001780b5d0ab3mr8450031plg.22.1664539075793; Fri, 30 Sep 2022 04:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664539075; cv=none; d=google.com; s=arc-20160816; b=ltYX24qzuEC9P1ycC6VCwpiOTrcVAuPuNrtQqb2J4df+r7gDy/embfVb+OaiMx+bBo s+kEHPU1JyHLvHRCCUI8BslgoxE8pIF7bPgaGOE9BLQurT0N4BkSD+A9l9IdxF4az/S1 vVVAJiuAXcJd8i3L3bnn80IQvFpzslcZ4SYqHLfKPYt6tWM3eEYI+c+cYHmzJO0mo3FR XGPVSneyuDZKpwXihM7btJCwgLeUF6fqaUK5mpCBg+ZZll48dwHOR1myE4r6KC0YfD+h Li5jl0hRuZlXUaZPXQa21ex6DxPW0bE+0RVX1IukyQPLjBZB7i9vaFiBT6zh2sG0sigJ nhsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gkGioLVwMetICdzznJX5cuKeLXApeRahk/YbtSiNyOU=; b=Wwy15t8ccKT0gM7aWaT6Y9JgVJYoxv3QDAgriCxIhQ0m47hPQClCpVS2td9mTBOISj eujgcKcEdpnQXc88vi+rSukmQ7099XtQ7qwVqpxOw3e+KAmE8RdqSYRNAq/0d0cCzJuO 3BVgHmWePyGJwQG8jE9KhrzCRv9dA42EF3uUfV5GDTjPeFSnPfIJFt/d/rfPSj0mf2Yu PEVzGzM2ly1MU7AzIQK+YCq1z5Ec3uoODGZnh0i+KG49ONv64NE55fcWHhadf2WbDR63 cLTFcvFuFGF8yob++YhBfO5dGa1XQ4iO2HfoQnCLE9tAq9XM0Ywj1DDQ7e2gmp6Lw52j zmYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=aA9q7N+z; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x21-20020a17090300d500b0016d9266a58dsi2277687plc.8.2022.09.30.04.57.43; Fri, 30 Sep 2022 04:57:55 -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=@alien8.de header.s=dkim header.b=aA9q7N+z; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229694AbiI3Lzc (ORCPT + 99 others); Fri, 30 Sep 2022 07:55:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiI3Lz3 (ORCPT ); Fri, 30 Sep 2022 07:55:29 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48327F536F for ; Fri, 30 Sep 2022 04:55:27 -0700 (PDT) Received: from zn.tnic (p200300ea9733e70a329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e70a:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 8EAC51EC04DA; Fri, 30 Sep 2022 13:55:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1664538921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=gkGioLVwMetICdzznJX5cuKeLXApeRahk/YbtSiNyOU=; b=aA9q7N+ze4YFGknkpfR9jdXxBnhAVBgLCb23/0jyqrX4Kv2W199DybFAnMSyRcyvZHrvvc iot1HFSDMFiYy9cire3ECf+VUH+/aLETNsDlelNvoo00IpP3IlN+hVYO67aaAbRmog1xm0 x2D1aAtd3QHeyXZIVJHvAZbQ7tXox+c= Date: Fri, 30 Sep 2022 13:55:16 +0200 From: Borislav Petkov To: Juergen Gross Cc: xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" Subject: Re: [PATCH v3 08/10] x86/mtrr: let cache_aps_delayed_init replace mtrr_aps_delayed_init Message-ID: References: <73d8fabd-8b93-2e65-da4b-ea509818e666@suse.com> <24088a15-50a1-f818-8c3e-6010925bffbf@suse.com> <6d37c273-423c-fdce-c140-e5b90d723b9e@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Thu, Sep 29, 2022 at 10:26:59AM +0200, Juergen Gross wrote: > So right now I'm inclined to be better on the safe side by not adding any > cpu hotplug hook, but to use just the same "delayed AP init" flag as today, > just renaming it. This would leave the delayed MTRR/PAT init in place for > resume and kexec cases, but deferring the MTRR/PAT cleanup due to this > potential issue seems not appropriate, as the cleanup isn't changing the > behavior here. Ok, what's wrong with adding a special hotplug level just for that thing and running it very early? Practically pretty much where it was in time, in identify_secondary_cpu()? Having a special one is warranted, as you explain, I'd say. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette