Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp255371rdf; Tue, 21 Nov 2023 01:31:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEEdRp9KB6cHd/LmSRg0bcR9xRcOajqYHvr55c9vahjJxAU08SeLviTU3nnouYrTOyrZwr X-Received: by 2002:a05:6808:1789:b0:3b5:69c2:59cd with SMTP id bg9-20020a056808178900b003b569c259cdmr11363708oib.25.1700559113310; Tue, 21 Nov 2023 01:31:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700559113; cv=none; d=google.com; s=arc-20160816; b=DEBFoGFGnAfWVclqYl5QjTC2Gr4yQ2XYvPGZ7IB4G1bQc2nHN9R2DUHuHbHeBua1NO qM/BlKnhOgFVoxrhs1ljQFF4806yUWyzV2DBbGtdiBJWPvk05QmWbE/JZiWVjdpJUPVd 9yxyQYECfTVCocDsA4FYhoafVJCQzobLoxk2Cp2GpUucW81IFVrU7nE2OeDRswUK1rrV yhkXfG6VU3LU51+80w4OeB+DN9WRO8e5H1tzlc+qaGGBz0T+PNCFdzLXWpnzyGaIPUHw gAwqL/KX+K67NC/Yx2NngBLKzBFR83erVBDS7pteRFqJXG1JmvCo3wOI9QMrKEZEqX+X ESRw== 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=62RfrHETXqKthXroehFgn2gQtaU9HFz0O4Xt7NTs5Dg=; fh=f4SnCP18GcvdWICWlZ/o9/0mE+7famEFm5zezDEmU9w=; b=i38t1n/VBMMM/qn+g+JI0l+FDU3KBsg5F0dTsIezUmAZIV8Qf0E5ucMWp//2k51XdI gOvzcWHqNIntL/3ujXaA0RN3/Q/3Ib1u9Qtl/YqmnSzVNt9dgaEWX1RuXgrpYHTLLihT B0W8ocbZhby84qv7Ci8eVulzwV6mhXPsGR05qRaxgTB48/nsvEEM/y5YsfiKGGeP4ZMi aVl93vFoxrLt90Z0+MwmXucM9EjJpGMz1pM1u/hT6ldWyUf4PcIUXaDHc0U/9LvYrvt2 9CWfcL+3du1Iox5Wc3EKFCLFShGdNDRoncM21vw+Gm6Y29T3sQ3Mh9j10MUm4Vu/N8/f AWDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B+9DNo5F; 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=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id s25-20020a656459000000b005898d648224si10216766pgv.12.2023.11.21.01.31.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 01:31:53 -0800 (PST) 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=@intel.com header.s=Intel header.b=B+9DNo5F; 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=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6CCF2804F47B; Tue, 21 Nov 2023 01:31:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbjKUJbW (ORCPT + 99 others); Tue, 21 Nov 2023 04:31:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233511AbjKUJbR (ORCPT ); Tue, 21 Nov 2023 04:31:17 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6346BFA for ; Tue, 21 Nov 2023 01:31:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700559072; x=1732095072; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bzOd0cd2+5cL6VwtiHKsX8WwvIE2qYTC6osgFynenks=; b=B+9DNo5FDG7g4h6J7URhM3jO6PpSfe0CgRiDRTHWdfMzu1EZtzVC0FJl 57KEQnlG2NXvXVE2S/12ABB06Z3TT6ZCInoSjygS00jX6Jzz4G5+2CgZd vlwX/LkwlsQeZp7tOC9zvgLsRd6eVVL1PxIsYte7b8UabrnuY08KAS7as OXaaCvyzS0Zg5H8RFg4nBv8HmHOjo6kaQowjU+4QvFsnE5cEmH0h+EwxF h9L9tBqmlmljrEaiRg4V70UhSYnMGgzVfNeMZAJqtiWwRDq0RrdnxOw7E jxW8l8IpJURAzx3MrMjP+1O7/0p6JD91Nf6yJVDlS9tFgRl9Zb8lCAIoG Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="4930133" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="4930133" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 01:31:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="8023791" Received: from ikosarev-mobl1.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.40.84]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 01:31:08 -0800 Received: by box.shutemov.name (Postfix, from userid 1000) id 14A2410A36E; Tue, 21 Nov 2023 12:31:05 +0300 (+03) Date: Tue, 21 Nov 2023 12:31:05 +0300 From: "kirill.shutemov@linux.intel.com" To: "Huang, Kai" Cc: "tglx@linutronix.de" , "mingo@redhat.com" , "x86@kernel.org" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "Edgecombe, Rick P" , "Reshetova, Elena" , "Nakajima, Jun" , "rafael@kernel.org" , "peterz@infradead.org" , "linux-kernel@vger.kernel.org" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Hunter, Adrian" , "thomas.lendacky@amd.com" , "ashish.kalra@amd.com" , "kexec@lists.infradead.org" , "seanjc@google.com" , "bhe@redhat.com" , "linux-coco@lists.linux.dev" Subject: Re: [PATCHv3 03/14] cpu/hotplug: Add support for declaring CPU offlining not supported Message-ID: <20231121093105.ev77pgbssq6scugm@box.shutemov.name> References: <20231115120044.8034-1-kirill.shutemov@linux.intel.com> <20231115120044.8034-4-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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, 21 Nov 2023 01:31:50 -0800 (PST) On Tue, Nov 21, 2023 at 02:15:59AM +0000, Huang, Kai wrote: > On Wed, 2023-11-15 at 15:00 +0300, Kirill A. Shutemov wrote: > > The ACPI MADT mailbox wakeup method doesn't allow to offline CPU after > > it got woke up. > > > > Currently offlining hotplug is prevented based on the confidential > > computing attribute which is set for Intel TDX. But TDX is not > > the only possible user of the wake up method. The MADT wakeup can be > > implemented outside of a confidential computing environment. Offline > > support is a property of the wakeup method, not the CoCo implementation. > > > > Introduce cpu_hotplug_not_supported() that can be called to indicate > > that CPU offlining should be disabled. > > cpu_hotplug_not_supported() -> cpu_hotplug_disable_offlining(). Right. > > > > This function is going to replace CC_ATTR_HOTPLUG_DISABLED for ACPI > > MADT. > > Is MADT too generic? MADT wakeup? I'll replace it with "ACPI MADT wakeup method". -- Kiryl Shutsemau / Kirill A. Shutemov