From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 410EDC0032E for ; Sat, 28 Oct 2023 14:12:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbjJ1OMQ (ORCPT ); Sat, 28 Oct 2023 10:12:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjJ1OMO (ORCPT ); Sat, 28 Oct 2023 10:12:14 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC1D3E1 for ; Sat, 28 Oct 2023 07:12:12 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1698502331; 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=CWAt/PDpViqk3UG1Vk3j+0hCIjdKt4J31sr7CYkEEWA=; b=GNY6kXNByQkJQe/0Dk5K7kRNpz+qZa+bZR68lQGT6vUrL6kSjnnLbImYBXOqP0+ueebAV5 gsOQnMx6lkcBlUOk5IT2YamImtiO1APlalzZHJb7nCgHJbGRroY5GgrTDgJEgicUztWpYp sx/61YRKSiSjjnTSsDQXfheFy+KmeSW5n3Xn9puHFQrJxRgR4rMTXUBSH9i39JW5b5wNeU QfgBJBA59dmshNBvyqWdkucR5TF11vFr+1+9PGyQF+8R0Dn+2ul24BKCsRGwvgVf0OH5Yn gkJUEjymQKTw+WeNpfZpK0AC6UntzEXXvF1oOc+rX6bU1ajxc2t8qK0QAB5Okg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1698502331; 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=CWAt/PDpViqk3UG1Vk3j+0hCIjdKt4J31sr7CYkEEWA=; b=NEQPzWuSx4qqzS4AYxdB3fJkAE2b0tT66TOWNyVlzvm+ClVFz5ErrXG/mXZmfIFd/FbOHY sNPgaHg8ASI15CBw== To: "Kirill A. Shutemov" , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "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, "Kirill A. Shutemov" Subject: Re: [PATCHv2 02/13] kernel/cpu: Add support for declaring CPU offlining not supported In-Reply-To: <20231020151242.1814-3-kirill.shutemov@linux.intel.com> References: <20231020151242.1814-1-kirill.shutemov@linux.intel.com> <20231020151242.1814-3-kirill.shutemov@linux.intel.com> Date: Sat, 28 Oct 2023 16:12:10 +0200 Message-ID: <87a5s225vp.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 20 2023 at 18:12, Kirill A. Shutemov wrote: Subject: cpu/hotplug: ... > ACPI MADT doesn't allow to offline CPU after it got woke up. ACPI MADT is a table ... This is about the MADT mailbox wakeup method, right? > Currently offlining hotplug prevented based on the confidential is prevented > computing attribute which is set for Intel TDX. But TDX is not > the only possible user of the wake up method. > > Introduce cpu_hotplug_not_supported() that can be called to indicate > that CPU offlining should be disabled. Otherwise the changes look good!