Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp27376lqt; Thu, 18 Apr 2024 07:38:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXHMT5IrZ0bB7eeLKVvalShEaRucR41Y9Fw5SApIM8kJgea8280oCaLcQxoJBmxIG5rtR+s0XZimadkbwsBoXvFPs0l3wZZUc+Je0hB3Q== X-Google-Smtp-Source: AGHT+IGoQal57heeWaSl6xMcFns+GCt3KoiN2+IXHNguBr5P3P4Qt7IqXSN63n9Ard4b48w9Hf58 X-Received: by 2002:a17:906:b7d1:b0:a52:13ff:5317 with SMTP id fy17-20020a170906b7d100b00a5213ff5317mr2158878ejb.38.1713451089938; Thu, 18 Apr 2024 07:38:09 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i27-20020a1709063c5b00b00a51da2a1169si951484ejg.706.2024.04.18.07.38.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 07:38:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150320-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-150320-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150320-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D553F1F238DA for ; Thu, 18 Apr 2024 14:37:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 880D215F418; Thu, 18 Apr 2024 14:37:49 +0000 (UTC) Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6978F41C71 for ; Thu, 18 Apr 2024 14:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713451069; cv=none; b=G7CSMmvUadLQxTb634fzinz0/9g0gW8YIk6AW7QWdDIE/SLRco6Wji55dxD8huJnSPASSimzKbAjkWh5D/Q6IteROg8pyuv3RKoeaanJCb15/P2V0uUmvJ8piDILUj3bzowvDufypRsuBcAEDYmepBGGotWusme3TgDtKoWdfVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713451069; c=relaxed/simple; bh=4HHwt9Fq69zLSpKRQ37mv7ZHBJdcC0buZ3fmQOAY1jg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QHTZ/z1l0wUVYepDV7EmYoMYkGUvOtvUaBhzxtFNwy4kNWaKZcSl6FO9OjDPx/HGWybwEWO67GvbBZhMcKPt+u/jIJOW+GahhDybJyNnqDE0qWYVdzDHfZK4wAXalVCfX3Nvi8RDHg9inpA4kIUgmnuGKDub8admr8LXzl4s/tA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id DE60E40E02A7; Thu, 18 Apr 2024 14:37:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Kvp4ItEFaEkt; Thu, 18 Apr 2024 14:37:37 +0000 (UTC) Received: from zn.tnic (pd953020b.dip0.t-ipconnect.de [217.83.2.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 6149940E0187; Thu, 18 Apr 2024 14:37:15 +0000 (UTC) Date: Thu, 18 Apr 2024 16:37:09 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "Rafael J. Wysocki" , Peter Zijlstra , Adrian Hunter , Kuppuswamy Sathyanarayanan , Elena Reshetova , Jun Nakajima , Rick Edgecombe , Tom Lendacky , "Kalra, Ashish" , Sean Christopherson , "Huang, Kai" , Baoquan He , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, Tao Liu Subject: Re: [PATCHv10 03/18] cpu/hotplug: Add support for declaring CPU offlining not supported Message-ID: <20240418143709.GJZiEwFejGQY3jiwsp@fat_crate.local> References: <20240409113010.465412-1-kirill.shutemov@linux.intel.com> <20240409113010.465412-4-kirill.shutemov@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240409113010.465412-4-kirill.shutemov@linux.intel.com> On Tue, Apr 09, 2024 at 02:29:55PM +0300, Kirill A. Shutemov wrote: > +/* Declare CPU offlining not supported */ > +void cpu_hotplug_disable_offlining(void) > +{ > + cpu_maps_update_begin(); "/* * The following two APIs (cpu_maps_update_begin/done) must be used when * attempting to serialize the updates to cpu_online_mask & cpu_present_mask. */ void cpu_maps_update_begin(void) .." > + cpu_hotplug_offline_disabled = true; but this doesn't do that here. Are we doing a one-off here for that variable or what? > + cpu_maps_update_done(); -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette