Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp699710rdb; Thu, 18 Jan 2024 16:55:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8VI3fCMUjkFJlPDrp6EkcfqC60IPeR4QZKl58rMXqMS7THQEkPtaiXQopflhyYcTB2D33 X-Received: by 2002:a17:906:d1c9:b0:a2c:f9f0:6a9b with SMTP id bs9-20020a170906d1c900b00a2cf9f06a9bmr793849ejb.92.1705625747209; Thu, 18 Jan 2024 16:55:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705625747; cv=pass; d=google.com; s=arc-20160816; b=zcJgLb0gsZ+6lBUAexnVvjgNEhSML7INlK7Rbp0pcJiOypQGXrdUXP8tr+J8tx0i12 wHTQm8IJDiDDX1/KVL6P+WyQucT+BgSoeLFPjWwSzi2lTNOmrgr2NSPQPdAaec9oAPKI lWN8eCE59pt5krHMTasEY8Nxueb6GYuUzMoC/dUvhB6g5HJMM+9NiplelSI57wz3vf3Z 55CHuiWso0omzLhEKiBl8C7rdh+rLkIW8VoqhJwf88Y4XIzoZOtuIVQb1vA3jTgD/D1D d4PWKDjK/3CyfFgk4ta8KwIM4Oo87mxCcGePDXZStsWg5wM4JtTvjT3gIPXXoZkzgi48 nrJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Zp8xmya7ffNONLsIkwl+dwEuPGDnVZOPk1TpK+AOkSg=; fh=iKc2ZTrk8CT8DWZQfhh2NngEZrcvDagPVAqfBJUVOb0=; b=UkjF9x41qEEbiZmIfwLV4fz2j9HCYsn7fVTdtdoyBnRdzIZ/2hsOZgxUSeMcEiWrjN 5KLPkAXFgZZZs8fWiHZdp9yXQlHg80elCMgdc/TWwE+sYUeQfMpNluaD6pEnQ3xsitxZ BWfMYhadGmtcb/Ul4hQBG7fBLLzIxAu3ULg5eyBLg+baxUagbs7CGCCvIq0bs+x4zZ6J w+Oo+4dHEybHoJEWMFe8ZQEFJ4IHSW3cKHi44yR4BCp99dGSAj+oKJEr/utNfMsFJ6vV aIOKz7/dj1xMTA8D8k1bfdk04pKS8289KNthjztxMo93pKs+sy2dnRgCV2Cg0/nZHdlW RDSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=F1EAAR1S; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-30667-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ay25-20020a170906d29900b00a2f7217762csi129884ejb.148.2024.01.18.16.55.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 16:55:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30667-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; dkim=pass header.i=@suse.com header.s=google header.b=F1EAAR1S; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-30667-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 F0DA31F237E3 for ; Fri, 19 Jan 2024 00:55:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77C64ECF; Fri, 19 Jan 2024 00:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="F1EAAR1S" Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE6C781E for ; Fri, 19 Jan 2024 00:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705625738; cv=none; b=lTehbCchKzGbXs8KBAaLNJlfAWT9vYMDc6hsupaxBkiQOCeYLfRaNkiPzLOAd/PAc2cx/jiT+Z08ZR2XXQqLs+OTA1Q8i5BYvuVv7nlJuac+Gib3df8kET3Ndr80AhSeJSUJJjSxRuTpK6qHjVSMXoeYSGuwuhy57HpiJORYGuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705625738; c=relaxed/simple; bh=aIJvYfmi6HJlaanfsGfkyB5yItcPr3SfQ5xVggiChrI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GEKfj9SXkWDVOoU7Z2vTVZGC9aYrhnMnjQL41qoyyfj66xKGmGuW9z+kJ4iuafA7EszvTEzp2rvKXjGL5r+sk2znLLQDoDpWsoUBei1W8eh3QedMIOHN82A++G7OmqrrRFSGVjX9+y15FYOB4PzWGnN7JqaDJnE3q46STK8+HKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=F1EAAR1S; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-337bcf021a4so160628f8f.0 for ; Thu, 18 Jan 2024 16:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1705625735; x=1706230535; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Zp8xmya7ffNONLsIkwl+dwEuPGDnVZOPk1TpK+AOkSg=; b=F1EAAR1SpdR6TbxgMpNM7DwMVTHGBap9ggblYWepeE5p9W8r4TO8DvmWqmBGmvqvge 4dWOiYE+gWDaAsPyx8HOnNI6RRVVJ8/YRzVfiIhZc4ii5SfhSJ7cF03NIs7kOvtUuxcp gb0fCntF5lVKdy3fperiLXbqE2oGABfIpGZJsq4cO59W9y1HER1lz4qO+hs/+KW0IruM zGBsQF28O5ZRTMG6edJEne64oI4iquAf5ZqK7CNNVI87RBT95sbWIeb3g/z+30U3LRbS KLbWkw/5Bt67CdncbpBB2izOJIpf5qUk4P9kObekT3ZixUc6EqCVjam7HRKBv2OAYTm2 1ucg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705625735; x=1706230535; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Zp8xmya7ffNONLsIkwl+dwEuPGDnVZOPk1TpK+AOkSg=; b=jOyKG18NJsb8X0hsYBWG3PTS1khbn5M47wjGfLQh1U3AWQ36TzWPqauAW8VGRoAReC ieFjANoK2hyK3nHvEa1rubLdkc3phPm5qcrW5lbR7TjlYOPzkSOZMsRQTCJnT78NXNFw XB44tC96MrvHcV1e9mE7sHuVkapH9rriqEeFufEIjt85INzORYfMtZ89nBSU5FzVYHwK Lk0Jdf7KjryiUexNoPlGykh0+qfiVML/GHDDZi80unRrngpt4BlUQmH9Oh3AUgkMqPq3 CzN1UoTFTsO6HsxDdJO21EWQZgDkJJjXURmyGLDiyUcIAi9HJ2e8vkLZnyWftb0VFjch QVCw== X-Gm-Message-State: AOJu0Yy+xjFkAJ9UX1cb+rammzD8FxGZpPvJpPUC4suwgfZK5KZ/6Rqw jxGiDrClme7QQmEl2ZgaFOdZXRE5JSCa5zPVnsCpoLci7r5fyATOM0LTAyYkyFM9XsZMVkelTw+ + X-Received: by 2002:adf:b319:0:b0:337:c91d:e816 with SMTP id j25-20020adfb319000000b00337c91de816mr1089220wrd.1.1705625734915; Thu, 18 Jan 2024 16:55:34 -0800 (PST) Received: from ?IPV6:2a10:bac0:b000:7589:26fc:cf3:a5b9:2475? ([2a10:bac0:b000:7589:26fc:cf3:a5b9:2475]) by smtp.gmail.com with ESMTPSA id t1-20020a5d5341000000b003378e67fd2asm5183061wrv.86.2024.01.18.16.55.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jan 2024 16:55:34 -0800 (PST) Message-ID: Date: Fri, 19 Jan 2024 02:55:33 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH] x86/virt/tdx: Disable KEXEC in the presence of TDX Content-Language: en-US To: "Huang, Kai" , "kirill.shutemov@linux.intel.com" , "linux-kernel@vger.kernel.org" Cc: "linux-coco@lists.linux.dev" , "x86@kernel.org" , "dave.hansen@linux.intel.com" References: <20240118160118.1899299-1-nik.borisov@suse.com> <7695034c0c7bf91532fb5cbd05d9a4b8cb77e70f.camel@intel.com> From: Nikolay Borisov In-Reply-To: <7695034c0c7bf91532fb5cbd05d9a4b8cb77e70f.camel@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 19.01.24 г. 2:52 ч., Huang, Kai wrote: > On Fri, 2024-01-19 at 02:49 +0200, Nikolay Borisov wrote: >> [Adding Kirill as he has a series in flight about KEXEC] >> >> On 18.01.24 г. 23:31 ч., Huang, Kai wrote: >>> On Thu, 2024-01-18 at 18:01 +0200, Nikolay Borisov wrote: >>>> TDX doesn't currently support kexec so disable the latter when TDX >>>> is detected at boot time. If kexec must absolutely be supported then >>>> TDX can be disabled from the bios. >>>> >>>> Making this decision at run time rather than as a compile time option >>>> allows distribution kernels to have both enabled and delegate to the >>>> user whether they want to use TDX/Kexec. >>>> >>>> Signed-off-by: Nikolay Borisov >>> >>> Hi Nikolay, >>> >>> Thanks for the patch. >>> >>> I am working in progress on patches to make kexec() work with TDX. I plan to >>> send them out soon (e.g., next week), but I think perhaps your patch is >>> reasonable before that is merged. >> >> I thought Kirill's series rectifies this ? >> > > No that's for TDX guest. Well in this case shouldn't INTEL_TDX_GUEST also be gated on KEXEC_CORE being inoperable either via Kconfig option or via a similar approach to this one (if it's accepted)?