Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1014272rdb; Tue, 30 Jan 2024 05:43:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IETTF0l2ZJvt88C5VdaQmwImhFGm+zDxfu9TlBz8XFwtnLiTbm2axK5e2xuIhFl1iqme5P5 X-Received: by 2002:a05:6358:c87:b0:175:d8d2:5cb2 with SMTP id o7-20020a0563580c8700b00175d8d25cb2mr5113165rwj.63.1706622232389; Tue, 30 Jan 2024 05:43:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706622232; cv=pass; d=google.com; s=arc-20160816; b=h1ZhfucyTQAWA6Sn7hNpViCRaCkOIpysgPcv0ZRM7oqdi73iv2EpvcSACSKc6h0aYk //wH9MBCIZ+Bm0/1Rh7i8zAtlqbGu0QKfQH5rMp0jv6q2BtgIW72z7Hx7SuaAtz+q20v OEYTgpg0IVeitMRUypmRis2AVln5Et6SmaYpfhcSPN1M5NOv6G2CsBCmNUBHeS6UZFkG P8YdGjzVQMGNvqIbS2DXxDVr5kBFnCKiNt4ujDepvJWkMLaetyWxCsW+qCWCHX2yfaVy e2u86cNa0AWUWyf3QNT87ZDeQmPZf4X8ZCrp3I73WbOUgJO5BhpORgNHvNcvWWAFN/kA 1/OA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=fdqrcK6nvdYTjO3hwglwmELjMCaLzs55L/JY/eeBcMA=; fh=cHoPloON7bjP722I6WmJv8Zbx+3xWEPssMYpLtoAQ8s=; b=MK+gAgK/w/Vr1nnDppWcecXG4xi+1WnX+hTzMA3h9XduzdBL9PECabKQfxsPL3/5l5 DCYQ9C9QOzWA968jLysdb0mjYH5PnHyX/8ATJ2HFzAV87sT2R292Vmnw5H/mpAL2woN2 hnsh4seXdq3Fpfh6NJo/MHWNc47fzLMMkb7Vy+4F0XOqeATBu1wbi5P0WyxRTZ4FhLgm nw8BM8DbMP5QNfx1DiaERpNmP4mfvn9Cw8KfAt+Ufl16zdyGnil9DA1BY/IpHqjdWcSr XMc7q434RNBMncEGmoaukwv4YZ8/D7e5gbudTpMoLTlNBH0qVKsGuNcox+DTPxdDnVHQ qr9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ODK6DRjo; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-44711-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c64-20020a633543000000b005ced2a6b890si7357313pga.668.2024.01.30.05.43.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 05:43:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44711-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ODK6DRjo; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-44711-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2F6AA2843BD for ; Tue, 30 Jan 2024 13:43:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B7886DCEA; Tue, 30 Jan 2024 13:43:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ODK6DRjo" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 250356D1B3 for ; Tue, 30 Jan 2024 13:43:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706622203; cv=none; b=P7XiKFArMCRhjxU2QMR8ommpIvh/c1Mj81R99KORo3DJvykiyU3NqUUcPLKjLyX8o39s38IkABEPFUbMARSp/yP/9TcBbCzXm1KNDp3XUP5RRUDvDSIg+fdv6ftY1ZDP4zTJ86u4sjce4qAQo2nBQbBAEESoEKK+6R48tfWzaB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706622203; c=relaxed/simple; bh=79d2bbZSXJly/o+65B7f4QxqgmB6eR2urOHSU0dbFZk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=U3ojd+M3o+M9EnxUCk2Nz6KrGBfOPuRc3yxkkhPrrKiEQ2iudn0Cr4I7VbbrFTehtYtYQqUqhu1dHtNo9f3HQ5dRzOD2Xw/1bJiFXA1ButPu8BIauI0GvCwJNJypSlWTXUN3pJmW8JJ2d/LI4XQ1/07K7MApXLuFcD8MW0yXn4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ODK6DRjo; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706622201; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=fdqrcK6nvdYTjO3hwglwmELjMCaLzs55L/JY/eeBcMA=; b=ODK6DRjoUtAolDRWK8qdLiznW+Qa/LlbpVeWA/ROcId69eNQHCmV3Ih1vm54xHfX2vCa1d gOBnvFeb/2rFkb/aqH71mT4LFSdsk0+DoX6q7nYgXw7D6ZqPtaFn+xVlRyGTCW6rsvNa6m QziBb0QgJl1qCmj7X/zAtIcdTP5JVU4= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-269-sdAXyUieNXupdWwYe3zlzQ-1; Tue, 30 Jan 2024 08:43:19 -0500 X-MC-Unique: sdAXyUieNXupdWwYe3zlzQ-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-40fafe6b4e9so863475e9.0 for ; Tue, 30 Jan 2024 05:43:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706622198; x=1707226998; h=content-transfer-encoding:in-reply-to:autocrypt: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=fdqrcK6nvdYTjO3hwglwmELjMCaLzs55L/JY/eeBcMA=; b=AmMIZ42XfkE326RfqrEfNG8ObA+g5xoECofv9Xkzl4fdpejlz5pM2TpM3umv7iJ2RC h3mKN5VkqbessZIKRi8XmbMAdeXWaIYxXhvbxP3YkcH2OFT4+yuWu90ccH2tIbVBmsg0 rUow5sbRfeH6wbPAQibDZdIY5lJ7pinmCDBH1NzyIjSOgrqPrs7Dhtp519otXRVh48Z+ 9K5dlB3vwl4XgTmrJG+HBcJs2J0URTRheeaEIMuPnEnyUG/uf5dAA235TI1c7ElTm2CE tBZllmpOmjOdiOxmY6+mvaQc1RBbiyF21qhg+8uMrCCvdAjJVYBfiujDGbpiaKoT8GvC aFyA== X-Gm-Message-State: AOJu0YyQw46PbFOcEBSLNHf8Erk64ZIWjdsDq2vZ2gHV1S5ug72yP0bY ynS1ZOG3zWA2JB+7jgx733keHayTJx6P/jCkXd4+Fiy1zyQrWCBL2fOx2A0m7cCTf8Ch5NCl8d8 9FroEw3TIatxeCb+eBow7cwurXnvJYq+yRmJbhePo5Yn23Jfwhw+EilK7PJVoDw== X-Received: by 2002:a05:600c:3516:b0:40f:25be:e811 with SMTP id h22-20020a05600c351600b0040f25bee811mr1315695wmq.8.1706622198401; Tue, 30 Jan 2024 05:43:18 -0800 (PST) X-Received: by 2002:a05:600c:3516:b0:40f:25be:e811 with SMTP id h22-20020a05600c351600b0040f25bee811mr1315674wmq.8.1706622198050; Tue, 30 Jan 2024 05:43:18 -0800 (PST) Received: from ?IPV6:2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e? ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.googlemail.com with ESMTPSA id bp20-20020a5d5a94000000b0033afa93c2acsm1929418wrb.62.2024.01.30.05.43.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jan 2024 05:43:17 -0800 (PST) Message-ID: <3f44458f-2b4a-4464-a3df-cb791298dafc@redhat.com> Date: Tue, 30 Jan 2024 14:43:15 +0100 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: [PATCHv6 00/16] x86/tdx: Add kexec support Content-Language: en-US To: "Kirill A. Shutemov" , Thomas Gleixner , 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 References: <20240124125557.493675-1-kirill.shutemov@linux.intel.com> From: Paolo Bonzini Autocrypt: addr=pbonzini@redhat.com; keydata= xsEhBFRCcBIBDqDGsz4K0zZun3jh+U6Z9wNGLKQ0kSFyjN38gMqU1SfP+TUNQepFHb/Gc0E2 CxXPkIBTvYY+ZPkoTh5xF9oS1jqI8iRLzouzF8yXs3QjQIZ2SfuCxSVwlV65jotcjD2FTN04 hVopm9llFijNZpVIOGUTqzM4U55sdsCcZUluWM6x4HSOdw5F5Utxfp1wOjD/v92Lrax0hjiX DResHSt48q+8FrZzY+AUbkUS+Jm34qjswdrgsC5uxeVcLkBgWLmov2kMaMROT0YmFY6A3m1S P/kXmHDXxhe23gKb3dgwxUTpENDBGcfEzrzilWueOeUWiOcWuFOed/C3SyijBx3Av/lbCsHU Vx6pMycNTdzU1BuAroB+Y3mNEuW56Yd44jlInzG2UOwt9XjjdKkJZ1g0P9dwptwLEgTEd3Fo UdhAQyRXGYO8oROiuh+RZ1lXp6AQ4ZjoyH8WLfTLf5g1EKCTc4C1sy1vQSdzIRu3rBIjAvnC tGZADei1IExLqB3uz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n3wG+fPQCVudJJECvVQ//UAthSSEklA50QtD2sBkmQ14ZryEyTHQ+E42K3j2IUmOLriF dNr9NvE1QGmGyIcbw2NIVEBOK/GWxkS5+dmxM2iD4Jdaf2nSn3jlHjEXoPwpMs0KZsgdU0pP JQzMUMwmB1wM8JxovFlPYrhNT9MAEQEAAcLBMwQYAQIACQUCVEJx7gIbDAAKCRB+FRAMzTZp sadRDqCctLmYICZu4GSnie4lKXl+HqlLanpVMOoFNnWs9oRP47MbE2wv8OaYh5pNR9VVgyhD OG0AU7oidG36OeUlrFDTfnPYYSF/mPCxHttosyt8O5kabxnIPv2URuAxDByz+iVbL+RjKaGM GDph56ZTswlx75nZVtIukqzLAQ5fa8OALSGum0cFi4ptZUOhDNz1onz61klD6z3MODi0sBZN Aj6guB2L/+2ZwElZEeRBERRd/uommlYuToAXfNRdUwrwl9gRMiA0WSyTb190zneRRDfpSK5d usXnM/O+kr3Dm+Ui+UioPf6wgbn3T0o6I5BhVhs4h4hWmIW7iNhPjX1iybXfmb1gAFfjtHfL xRUr64svXpyfJMScIQtBAm0ihWPltXkyITA92ngCmPdHa6M1hMh4RDX+Jf1fiWubzp1voAg0 JBrdmNZSQDz0iKmSrx8xkoXYfA3bgtFN8WJH2xgFL28XnqY4M6dLhJwV3z08tPSRqYFm4NMP dRsn0/7oymhneL8RthIvjDDQ5ktUjMe8LtHr70OZE/TT88qvEdhiIVUogHdo4qBrk41+gGQh b906Dudw5YhTJFU3nC6bbF2nrLlB4C/XSiH76ZvqzV0Z/cAMBo5NF/w= In-Reply-To: <20240124125557.493675-1-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/24/24 13:55, Kirill A. Shutemov wrote: > The patchset adds bits and pieces to get kexec (and crashkernel) work on > TDX guest. > > The last patch implements CPU offlining according to the approved ACPI > spec change poposal[1]. It unlocks kexec with all CPUs visible in the target > kernel. It requires BIOS-side enabling. If it missing we fallback to booting > 2nd kernel with single CPU. > > Please review. I would be glad for any feedback. Hi Kirill, I have a very basic question: is there a reason why this series does not revert commit cb8eb06d50fc, "x86/virt/tdx: Disable TDX host support when kexec is enabled"? Thanks, Paolo