Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3897624rwl; Mon, 27 Mar 2023 23:00:06 -0700 (PDT) X-Google-Smtp-Source: AK7set9DafsVlSyQSFKpN0QiaqZalDcmu8Y+c94AUKzD9Hj+QNsL8QGstEg2MbST6ZNrm7iJVH6H X-Received: by 2002:a17:90a:17a9:b0:23f:452c:7a4f with SMTP id q38-20020a17090a17a900b0023f452c7a4fmr14870355pja.46.1679983206013; Mon, 27 Mar 2023 23:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679983205; cv=none; d=google.com; s=arc-20160816; b=uiGC87JDCz6d5aG76RCE51QJyu8Y0n1Xox0jSIaLzWErmeoC7kj0Pij+9kddhWfaqY 9PQc68aCXyph6D6yVMkQVsto/QXOjn2yPV3I3kakbKUqOkC5UvJfPX/xYIvKx4MupsS1 mSMjcp5xHRjMhsZfs9u4SKZqgdA7JKiFNM3kKdzbuZZXIfM97wemU4dhB4wf77i+hU1K C0izEE23Vam//AtwL9IvajrEGeA8X6RMhCOwoem2cwv/iZd2Tbyis0/G8xFZYowkEkzw rsxJ7sJxmPm3W9Wh2ZGwuf0DPnMfH6yCEG0kAv3dlrpMd9EVWJUbqxEoYum6JsRJ7BQu VR7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FF+DUqCGHy8oPyFBqiYg8s10DunJo6T+TgdcwHN7O5g=; b=i9eu6gqmzlEKC1WvVsl+inKnbMyTk/bj7bT80liRpuLuFHba0NWCD3IojIQhXiOCvG If6wSX450qEch6RVUfl7OBA2OHcEWn1AnfT4lEJEzwKQKpXE6/VhFmxRXJ11OqdkGm0J sthpaygRbkuqHGWh4ljEhgS/aD+jqhZTjOU4wabDX6Dm5b5hUAiYzi5wKUqJzks1/YSa JJf9R1Au+gJzPjLnS7jZjoI+CMtqBktptatmYCqmakDpSxD/97IBAO0NtcYgZUzXyz7R nEPTQbrjgrTy+o3CeRlZgFn9kBdi98pWlYtO5pah2l/FY9BqEi+6RRMZAzkB5M8/8xDJ OD3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ESv2E2dN; 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 b189-20020a6367c6000000b0050bf747e913si29311380pgc.224.2023.03.27.22.59.52; Mon, 27 Mar 2023 23:00:05 -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=ESv2E2dN; 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 S230507AbjC1Fxj (ORCPT + 99 others); Tue, 28 Mar 2023 01:53:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjC1Fxi (ORCPT ); Tue, 28 Mar 2023 01:53:38 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 456151BFE for ; Mon, 27 Mar 2023 22:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679982818; x=1711518818; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=FF+DUqCGHy8oPyFBqiYg8s10DunJo6T+TgdcwHN7O5g=; b=ESv2E2dNjMHASUtegF+EayvwPAK6RCh8Soc3l07IZvHlYJm5mDlJD45g DvpqBqTHk+wuAzcn5YthmLIxbIqcOjE4ItYnxcjP32hiZWrCFY07x0TJq 1OeSdNkdN2lCcw3Ob8HbEVWCGmZA4+aZ7zwveGWDt78lmjgkXtl6LGtyX SdeXQt48wPG2DlHU71isKS2rDDTgMF5m2/ehPZth+KG1gyEkxGM9BIMmq BSkQ6I5p2N+axBu48UcN/hY5MmpK5mDRoWnWvKr+8n7UyLeMdhoIHiwJd ytU+dkGSedaTOaN9WgbEn8bq92R3psFqHZrFMwgGYE9cEIukaSCDvPza0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="403088288" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="403088288" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 22:53:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="752987372" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="752987372" Received: from skunchit-mobl.amr.corp.intel.com (HELO [10.209.35.30]) ([10.209.35.30]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 22:53:36 -0700 Message-ID: Date: Sat, 25 Mar 2023 09:20:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH] x86: Disable kexec for TDX guests Content-Language: en-US To: "Kirill A. Shutemov" , Dave Hansen , Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, Eric Biederman , kexec@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230325160128.21857-1-kirill.shutemov@linux.intel.com> From: Dave Hansen In-Reply-To: <20230325160128.21857-1-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 3/25/23 09:01, Kirill A. Shutemov wrote: > The last item is tricky. TDX guests use ACPI MADT MPWK to bring up > secondary CPUs. The mechanism doesn't allow to put a CPU back offline if > it has woken up. I'm not sure I like this approach. TDX uses the MADT exclusively. MADT-based systems can't offline CPUs. kexec() requires