Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp407504iog; Wed, 29 Jun 2022 02:44:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vMg5Ap81oGOoxhVKvnBMo4Hr32qTQ/cwKpwW0PYlmmLMLs4OWDyHJmEOmHegRWR+PLi1BK X-Received: by 2002:a17:907:7fa5:b0:726:935b:2faa with SMTP id qk37-20020a1709077fa500b00726935b2faamr2496561ejc.17.1656495864443; Wed, 29 Jun 2022 02:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656495864; cv=none; d=google.com; s=arc-20160816; b=S5/x2aialcarGs4JPZ4FUKtOcc/cdzQhQgggqppl4dn9OMpHjN1fi8p/CkWHwuoKtm To4vvJx7l3nneZykH8AfLL+s99M2TXDrhuDYBRESQm0trSVW8D+pjFF3Pnpb6V0jpZ+q iQIBHLWIbrZtJ6vWQc3wEeu8AkQ+zEE0AIiWsI+n/qK6Fl/Q2BPtT7wxSZXVBnSMh39D LWep2NyHkWxz9/RWV9Eh/bVqJ2auTMukWtNwEQhXA7yZ4qOdRQpdNU71kciIyYlfNtpT iH4y6hHxeqsxOIuir0/y2iHdp3xzV6l96C1zN7Jp0WEo9Bnwz7MMFKv+bq+bwQt1BRn4 +eeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=fXVdFGyeymvMTdkTF1jk3BQQu4uPy4JoU08eqnp9gf0=; b=eguROMwt0PJtdeK+RuQKZiIvP1jU4wmRU6l9aCbSqsX+/wayzWJ9DQam9ZUmHd8coF uZjrNzQYt4Q/D+aNsbF/4NCM2O3KhD3cnx+827aE77xFVRq0EY87F1SlyC/a3L+5n34U QouVb8sTStAyvFaVt5WYhyvrfV+b5d0gQOhkaM+Hx3VKHDuHPKOb8EOrxCGGcr9prGMl z+WCI+3TSmnNpAxKccLN4E92jL3WbRtouU8uxcK1vV0fjSXhHAj8ImzebAi7IzDiHau+ 7/X7pD+cHE+ErkHNhsfvsVsa1HgVQ+6PJaMWyq+4/QJ6h5G5z1iL+32QmAAwcb5Xo0wu ReeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JUlgVF8Z; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a056402500b00b00437deb23714si422399eda.511.2022.06.29.02.43.58; Wed, 29 Jun 2022 02:44:24 -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=@intel.com header.s=Intel header.b=JUlgVF8Z; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231391AbiF2JJj (ORCPT + 99 others); Wed, 29 Jun 2022 05:09:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbiF2JJi (ORCPT ); Wed, 29 Jun 2022 05:09:38 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 995ADB3F; Wed, 29 Jun 2022 02:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656493776; x=1688029776; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=vyNYt5Z2SEb+Bn2+zWB3lNIb65JbzeAfclhP43nRxyk=; b=JUlgVF8Z3bX+xK8QRVJrlsAg2PhL4Xwf9abykevfSQVRjEwQ4jquHjlI fbsGjFIpcSg88qfNHjjcP1xaufsveQoKbZfutaj9GKEhk3pq044OtG98S FOgbFadp2vut89bNxsN//Piaj1ulN1ZEBypoj+kbIAXwc/VqSn4RXc5OM 7/SrAL9EWQIDQW/DGXSSJowbUEmGaPSe3gh1z28L8B81oVjTM7DS+hLjY LpE4ge/NWdCtLK7rfGELalfBFsAlBd2SYU48VPpBwSCOTC27oqTN+ubd5 0NMiWX7NtaojNyQ8KQaEPX2K6+GB4/9FTFoiiD0JWdyisgSgqYkv0yN7O Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10392"; a="279524553" X-IronPort-AV: E=Sophos;i="5.92,231,1650956400"; d="scan'208";a="279524553" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2022 02:09:14 -0700 X-IronPort-AV: E=Sophos;i="5.92,231,1650956400"; d="scan'208";a="617510684" Received: from gregantx-mobl.amr.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.212.119.76]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2022 02:09:08 -0700 Message-ID: Subject: Re: [PATCH v5 02/22] cc_platform: Add new attribute to prevent ACPI CPU hotplug From: Kai Huang To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-acpi@vger.kernel.org, seanjc@google.com, pbonzini@redhat.com, dave.hansen@intel.com, len.brown@intel.com, tony.luck@intel.com, rafael.j.wysocki@intel.com, reinette.chatre@intel.com, dan.j.williams@intel.com, peterz@infradead.org, ak@linux.intel.com, kirill.shutemov@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, isaku.yamahata@intel.com, thomas.lendacky@amd.com, Tianyu.Lan@microsoft.com, rdunlap@infradead.org, Jason@zx2c4.com, juri.lelli@redhat.com, mark.rutland@arm.com, frederic@kernel.org, yuehaibing@huawei.com, dongli.zhang@oracle.com Date: Wed, 29 Jun 2022 21:09:06 +1200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.2 (3.44.2-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, 2022-06-28 at 22:33 -0700, Christoph Hellwig wrote: > On Wed, Jun 22, 2022 at 11:15:43PM +1200, Kai Huang wrote: > > Platforms with confidential computing technology may not support ACPI > > CPU hotplug when such technology is enabled by the BIOS. Examples > > include Intel platforms which support Intel Trust Domain Extensions > > (TDX). >=20 > What does this have to to wit hthe cc_platform abstraction? This is > just an intel implementation bug because they hastended so much into > implementing this. So the quirks should not overload the cc_platform > abstraction. >=20 Thanks for feedback. I thought there might be similar technologies and it = would be better to have a common attribute. I'll give up this approach and chang= e to use arch-specific check. --=20 Thanks, -Kai