Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1784917rdh; Sat, 28 Oct 2023 07:07:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQVuULoJeF3AQAiePvsOoR3KQH9uJ4NS24/lEiblbK0xj0z6ZUD3q/ekdu5N3utoQ+bTSa X-Received: by 2002:a17:902:c951:b0:1cc:3051:14f with SMTP id i17-20020a170902c95100b001cc3051014fmr2988978pla.65.1698502057517; Sat, 28 Oct 2023 07:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698502057; cv=none; d=google.com; s=arc-20160816; b=HcanhtUq0wpXe6WUPlVu7gyEyG9I5dj7AwrVfQLJFqlEl1e0TPAFlAERH+ZUA+4B2X z5w2JipQcerlq6GmeS5sgXd4o5Y4vyXQ0GMulSoJi8gz/6Z0fWJNNzmezMeTTbZRfErx NJI1f2xb9B6PK6VnLI6FU4EXFUJFFE6Xly24AN8xr1tZNTubgptZn5OKLqxKwKB6evSr LT2/5epZQADCp4yJZIImUHWlg41NjVaWZdDEQRpa4l4kLMPp5//Owg3iGBRh5l9BARGU YQrZkHcZP4/4F8NWQe+89S+i7e01wyf8uS/vV8AzrhA4cwQd3m2ZZvhHU2B9zfQWEDzQ BL8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=qAZ8/ypQKsb51hCx92Cob0mTqPJOPxsmPa1MSwvVBmI=; fh=xxKyE1aS4ngpsw3pql9z9o03rLMF/xKms9addwsLYms=; b=Rn8WCAGY2GstoyNrAB0vZar0AZ+5IMJVDKj37dogMlwz6A5se9kvOBIB2s9j1oCwP8 r2Flf/3GcATcHVxPdiFpLHWpWSPKV3oRzkkzlQUak/kWUrmURDsbGCOGjJVJSvEHLT3p Y1QlrbAi7dhaSo2M1KbxlIJxCz8kxfJ+KU+HP3NZE85fVIXDdurvSmZo4hcxqPnV9IFN E8UsvkIb2u/qGGOKhf1ppC6sOICpqVe1PFBP1yK8cKm0m1NS44om3/eAuHFc2IUxaqh+ c/HjjWUEV4xLH2rg3XJouqRVl7rfsx644nQty6jHYFBeKhOPDcZQqL9hqaw78UBdbP9U Ilhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YsJghcFY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=1xqjRVFu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u18-20020a17090341d200b001c5d09c7b0dsi2653489ple.458.2023.10.28.07.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 07:07:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YsJghcFY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=1xqjRVFu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 92E608065CEA; Sat, 28 Oct 2023 07:07:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229520AbjJ1OH1 (ORCPT + 99 others); Sat, 28 Oct 2023 10:07:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjJ1OH0 (ORCPT ); Sat, 28 Oct 2023 10:07:26 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EA459C for ; Sat, 28 Oct 2023 07:07:24 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1698502042; 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: in-reply-to:in-reply-to:references:references; bh=qAZ8/ypQKsb51hCx92Cob0mTqPJOPxsmPa1MSwvVBmI=; b=YsJghcFYnSnqaFixz9uQHA7H4GDu4EHF504t285r81imS4UrUXnPT7YZN34If4C/dh+bOP K5ZdubvR6YTKatdEDUX1TC7aRCAyU5/iYVjBzvRMnmc2D45lUbRwQG+3B2wOs+kERUPnOu vUu92xav5dw2XbLRya3dl0Ntcxr/dpI9kSWW0r2h9hEPu0Vo2+4wG9FpVoVhvo2hNBd0gd 8toq2qfb5G0Ca0iLOmPt/iklKwmQZoQAc04gz4EWI+/wM/mw8DgWNz6+X5jfaz0HrwnUcE oODwu7U1noneAif+trmRttQ7fMZOD9YS5PqnruGGQYzWNJDUpZTHtszTjNQtUg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1698502042; 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: in-reply-to:in-reply-to:references:references; bh=qAZ8/ypQKsb51hCx92Cob0mTqPJOPxsmPa1MSwvVBmI=; b=1xqjRVFuL6iiObo0Dw71zi0nfUttrZD+bjTM8N6jPRzmNK6+9jzAnIn6ESFXTGWIc3WdYN G+CPAZn6ODbbhjAg== To: "Huang, Kai" , "kirill.shutemov@linux.intel.com" Cc: "kexec@lists.infradead.org" , "linux-coco@lists.linux.dev" , "ashish.kalra@amd.com" , "dave.hansen@linux.intel.com" , "thomas.lendacky@amd.com" , "Hunter, Adrian" , "Reshetova, Elena" , "linux-kernel@vger.kernel.org" , "mingo@redhat.com" , "Christopherson,, Sean" , "bhe@redhat.com" , "Nakajima, Jun" , "peterz@infradead.org" , "bp@alien8.de" , "Edgecombe, Rick P" , "rafael@kernel.org" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "x86@kernel.org" Subject: Re: [PATCHv2 02/13] kernel/cpu: Add support for declaring CPU offlining not supported In-Reply-To: References: <20231020151242.1814-1-kirill.shutemov@linux.intel.com> <20231020151242.1814-3-kirill.shutemov@linux.intel.com> <0a29fef814e51a2aa0030ec9cc97366718859411.camel@intel.com> <20231023153142.bes7zxcjc2soihsl@box> Date: Sat, 28 Oct 2023 16:07:21 +0200 Message-ID: <87cywy263q.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain 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 howler.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 (howler.vger.email [0.0.0.0]); Sat, 28 Oct 2023 07:07:34 -0700 (PDT) On Mon, Oct 23 2023 at 22:07, Kai Huang wrote: > On Mon, 2023-10-23 at 18:31 +0300, kirill.shutemov@linux.intel.com wrote: >> On Mon, Oct 23, 2023 at 09:30:59AM +0000, Huang, Kai wrote: >> > IMHO it's a little bit odd to have two mechanisms in place, even in this middle >> > state patch. Is it better to completely replace CC_ATTR_HOTPLUG_DISABLED with >> > the new cpu_hotplug_offline_disabled in this patch? You can explicitly call >> > cpu_hotplug_disable_offlining() in tdx_early_init() so no functional change is >> > done. >> >> I can. But I don't see how it makes a difference. > > Personally I think this is better because it is odd to have two mechanisms in > place even temporarily especially when we can avoid it. But no hard opinion. > Up to you. It's not at all better because having this clear split makes it simpler to review and ponder the individual changes. Thanks, tglx