Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1061398rdb; Tue, 30 Jan 2024 06:59:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIG/sB5c+sn4XY0wnpYlvPPEu/lFP2Ihilj3hloM0PCmdmm4kkdBcFD7/YZLxbc9OXtqYU X-Received: by 2002:a17:906:264e:b0:a36:1e51:4a4c with SMTP id i14-20020a170906264e00b00a361e514a4cmr1524556ejc.75.1706626799277; Tue, 30 Jan 2024 06:59:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706626799; cv=pass; d=google.com; s=arc-20160816; b=uBumeZ+UHiGYKix1UdE09udM/TdRicLEFp4Uk2wzPZv8E7LRI6Fk4wslHancLszQUE DrrzcC1VK/A134CBv6GDcbFlio59QWta8tXPBjK7BbDtxnkbNRNMs/0ScJ4FqBPolOTn z4BXc9bafcsf8QMWtsPOCWdLLRgH8doN7wjq2VqJGvu1zPKJPGXo4UM7dHSgF37gjHnH lP2guZzShAQ79slUO4WxsvGucuHUeA/EknwVmuBdZ0A4C9YhNhZBVNGKOzkG452JUYV+ +iyKlqsMbjOwfiayGmznfdBWZJ6bEjiBrR/DF5lzI2nX30Pm2pJdjzEkHaL/HnhpCF// 0XNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=1tgAgVSY1WXEHtXlxjinJFnJmsZeG3N/wjN5CzUBIZc=; fh=DRudXbmcGzWT0Fd1lc8ADeWFsNdiVb7do9fsu99/r/k=; b=fKcTcdCzbUcp3pJl7wLuc6mYju0T6o1KUt6R5tnk2OJgOZEJWW0NJibKy6ZfrKDcHf TxbddfMFVqdomOhIdo9O/wAnQwoyvXMFsHjAOpuMouzhGUIQGkbuEBhfBi8PFDzA7xe+ y+Di0eecummMEbGGSOjVO7GuVC+JKs0Zb8J8F4NopRpKtsvhwAZV7f8jJerpUCDIash4 Ce1/MQ81AHzFanDtfDC4dmWMPzT3CIqsA671VZbUIgyMQtdH0e/wH+9u08SFi+T7Ajri aRVnzgm3sIwJ4ZOBvzfJhMOvH8H4uREhDO/GTWYpWtYmsGxV2Xb+G1USshITd2c0O84J fA1g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QfHT3XZw; 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-44786-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 u18-20020a1709063b9200b00a35a099671dsi2419517ejf.46.2024.01.30.06.59.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 06:59:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44786-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=@redhat.com header.s=mimecast20190719 header.b=QfHT3XZw; 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-44786-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44786-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0B0CF1F2885C for ; Tue, 30 Jan 2024 14:59:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B26787E771; Tue, 30 Jan 2024 14:59:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QfHT3XZw" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 3B43A7CF08 for ; Tue, 30 Jan 2024 14:59:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706626791; cv=none; b=XsMnj0+hmqFqdeL4fu+Ea2P4Rf+oAU7nGUw07uPD1ng4gv+bXkeNmZrbdPArFi7/fwBTe6DAQhSnkfK5r9Qcmrjeri3YMEJmop6CLt25LTgUd+jnCNURu8G2kehD0vYZxs+W5nnffHM7nKcljfk0bgXJgd69jYS4gAt/IquPrt8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706626791; c=relaxed/simple; bh=1tgAgVSY1WXEHtXlxjinJFnJmsZeG3N/wjN5CzUBIZc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=S9XlXop0OfIT+PlmtK/PFDXxrSQihrbunqNeOabuHRqGWJ66kMfGH6956pg2QCMqvZKbpgu+xLGmSn10s+ItJbiNvphI3u3KLgGIgVs0hvpQVoSnvQBz357gY1q2yhAQcwSfnsLj0jBGXrJITDVHFb425wqF1sOSRoGyzXjl6/Y= 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=QfHT3XZw; arc=none smtp.client-ip=170.10.133.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=1706626789; 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; bh=1tgAgVSY1WXEHtXlxjinJFnJmsZeG3N/wjN5CzUBIZc=; b=QfHT3XZwK88KwZCpXEFti8+XLepgEDh5a29IMchVK9bNIebrC2r0GwtWqkv7qFqyrjOpFZ gerkr9qZJ2RmHMwzBMVdcQ+MbKn0IYim67LJY0O/6hkyKDT9fLlfTMQ5zl6aTPDOqIY9oS utzVlHACs7k3I9kFMKNroY26xP8XAX0= Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-462-brbp_rAUMvyAJ6QGb7z09Q-1; Tue, 30 Jan 2024 09:59:46 -0500 X-MC-Unique: brbp_rAUMvyAJ6QGb7z09Q-1 Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-7d3184d4989so2288011241.0 for ; Tue, 30 Jan 2024 06:59:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706626786; x=1707231586; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1tgAgVSY1WXEHtXlxjinJFnJmsZeG3N/wjN5CzUBIZc=; b=eGeqxggks4NR2ELWHPUd6n4JsR244vuOTzgwIXWutCqtWm8D0z0tVbGz7ei6tp68Hq oK3feK8bpXEFK8G+pAdnMEiHO5Pq54szJB5tX1gZFm2EAebHZA2WQq9AdPxfC/czAAnU 5yA8dB4DjBB8uhTrkp+TUdIP5bWTxKYj4cslgfYpb4T4/V5LMNBacpCc6kxmNHyOaVCe toLtUT0euqv4Xk/r6kohVE3meOggg+aAG0Omac7Z+birXm1wzs0uwkKxD4Xc2zbOkbr4 xTJJTAv0VkWcZ3okHLWXrLAIsL7RNiQXzLeYNyED/OeGqJXJpm3sMZm35FNnCVRudzQ9 Q1Vg== X-Gm-Message-State: AOJu0YzzO0tQlz80SAJzRu+B/ca0biETVwcbbgNCLMbAzbZThBmyz+Sm wrxae//PXPIlyMfJ4O+FvRxhYdFoM+mVUw7hpX52KMNm0EfO5wPBGAE3T7Wwmnm0EASD4gLA5MK kRHnv3h7oXnt3AzT8Dei+VLNyAmoCSNczjSKRQIt9VlwjhohUhirTeYGzpaG08jW8tRWN6dOegR WJIsxSm1SJ+gpvRGdN2yVOXy5554YcIB6T89C5 X-Received: by 2002:a05:6102:2256:b0:46b:6a7a:30a1 with SMTP id e22-20020a056102225600b0046b6a7a30a1mr2218301vsb.6.1706626786409; Tue, 30 Jan 2024 06:59:46 -0800 (PST) X-Received: by 2002:a05:6102:2256:b0:46b:6a7a:30a1 with SMTP id e22-20020a056102225600b0046b6a7a30a1mr2218288vsb.6.1706626786190; Tue, 30 Jan 2024 06:59:46 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240124125557.493675-1-kirill.shutemov@linux.intel.com> <3f44458f-2b4a-4464-a3df-cb791298dafc@redhat.com> In-Reply-To: From: Paolo Bonzini Date: Tue, 30 Jan 2024 15:59:34 +0100 Message-ID: Subject: Re: [PATCHv6 00/16] x86/tdx: Add kexec support To: "Kirill A. Shutemov" Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 3:34=E2=80=AFPM Kirill A. Shutemov wrote: > > On Tue, Jan 30, 2024 at 02:43:15PM +0100, Paolo Bonzini wrote: > > 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 ACP= I > > > 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 no= t > > revert commit cb8eb06d50fc, "x86/virt/tdx: Disable TDX host support whe= n > > kexec is enabled"? > > My patchset enables kexec for TDX guest. The commit you refer blocks kexe= c > for host. TDX host and guest have totally different problems with handlin= g > kexec. Kai looks on how to get host kexec functional. Yeah, that was right there in the cover letter (and I should have gotten a clue from the many references to CC_* constants...). Somebody pointed me to this series as "the TDX kexec series from Intel" and I had some tunnel vision issues. Sorry for the noise! But since I have your attention, do you have a pointer to the corresponding edk2 series? Thanks, Paolo