Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp379116lqi; Wed, 6 Mar 2024 22:57:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6XBm6fJsPgMSF3rtJGTAvXQZNgw1uOMf2d4hnUZV3o4a5PSMFyeDuLQ3n0hGiZ3myKdkKrEmfZATlU6oBWJ1GGrCRe+/bbxLr8is6Xg== X-Google-Smtp-Source: AGHT+IHAG0jeRS56jUQtAUM29VK+AIawg0hVbRNrTQavGCbjL6Jl9T2n0UTBdxFZ7sIWQfVMNEWB X-Received: by 2002:a05:6830:150b:b0:6e4:9482:86c3 with SMTP id k11-20020a056830150b00b006e4948286c3mr7130288otp.10.1709794674047; Wed, 06 Mar 2024 22:57:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709794674; cv=pass; d=google.com; s=arc-20160816; b=NPi/70L+MmocUkeVRGV3lbDQ6VvsB5u34k1bkiaYo0fXid7TmONrIH+usWhH899fQ+ Kv1a+TsGky4W82PcKfXsJeYZMiix24MBsme8uji+GD3F4VOM+xmykKVYEFq2TS9eqVAn xRGdw/KZ1mRfEUz8ooow6PrWVljSHkyCSrOAUYuU8ApQapGFw/VEp7VJwTInitCEyb/o sZpNZEApo4Dy/Cbor0tHIcTVdODGOL4fOaXlT7nkcmv3zA90RkUG7WwY6ekAB5Ic7+Xz Ej3B0GpjhKQVGr4NuID1f41KzdK77cYVgL/vpWOQ6eLAzEFtGORt6Va7rdY26fWNj0JK 5AsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WahUM+zqL3/MV81SCT1ET9pBkiIjcOfSRMGsDbdTxr8=; fh=AuYBxt+CzXYqX/+5hNNm9mRQKcku1kkOnAQiddgr/j4=; b=u43WpEkM8iCyFvIjXTcZVj6UXElfyVdDbMIX0OgblgGQdttpfAPfbjLaPKQCbtxgVM +YXsUvfdAjxEnMZFvVx2xbsN2YB1lXplAASEV9U6OvJ6L6DRqLr28LNQDX20i4moE+C2 irlx5RZqoB3fKKYJnAavFiI+0uSbJ49tRFUCOLApeDTmROQDDJy7cWacQT23Jfc/jRp3 Jcub+oyk41nR4qGlexfqBW3J4w4ptkvPJgDQ9j3FE8Qp4V8+459d3sC1/OCUcWO6NDpz Gaqd5D/Vtw4cUv+eqTMOu4TWM26TLyxC2FV3kT5uuA/pnP4XpzhXne0QLbmYJlCN1fhy WRJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=c+E1ySXm; 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-95028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95028-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 22-20020a631856000000b005e2b1d8f234si13342348pgy.342.2024.03.06.22.57.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 22:57:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=c+E1ySXm; 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-95028-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95028-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5BB1BB22555 for ; Thu, 7 Mar 2024 06:57:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62DA71CF80; Thu, 7 Mar 2024 06:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="c+E1ySXm" 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 15BD011CBA for ; Thu, 7 Mar 2024 06:57:40 +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=1709794662; cv=none; b=YqpQQePEX+xNN4efnVmmMSco2EPwNoPrjcCmzkTvvH2acBEtLMSKWHo5FfEFECvNTvcF6QlmPF2QewjcREeoJZ44Uo7b5MZv88JDycxzBhiiRnueAV5UFE/fYZrDB7oQPumY/Xbh+6b3rF6lgzK4Flgcr5BvomiONYU9yuLtMTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709794662; c=relaxed/simple; bh=x8eP0o5pZaI9jroRM2oe8B2fByfaYTMaMZG90oE3J8k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BhHT9Jb9ZRQijtPmbF8Wa1NN+wz9V0ewU+ebMfLz84u8scLHElWGQ7I5xyiUT1qxTVwF6U7iNkC3/ZqWtULlUeP2cvkxEkZkNOt39JAC1jcLhy705iJLELWqg9Ehfn/4oGIReoHmaf2nV31UDamiWroiCGHABFpxihJC09WsuZw= 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=c+E1ySXm; 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=1709794660; 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: in-reply-to:in-reply-to:references:references; bh=WahUM+zqL3/MV81SCT1ET9pBkiIjcOfSRMGsDbdTxr8=; b=c+E1ySXmiXJ0pHDzh2xITCPm4lhzI5yWYZ5JkYlWuEJsfbGg4dsRO76IJjbv6iC8+1ljkg Y5NZLTgUk1RyMLhLv6sROI7lAGzc8bf2OMe46Xf6JtStGJzrcsWkmJof/qCZBN7mFpYDyy kR/NtWUeD0m0rOQlYqpYh5XEvSJ6gLA= Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-395-QgA5RYt2Mj2GhRtzeEkwbQ-1; Thu, 07 Mar 2024 01:57:38 -0500 X-MC-Unique: QgA5RYt2Mj2GhRtzeEkwbQ-1 Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-6e5ef8a99c3so677359b3a.1 for ; Wed, 06 Mar 2024 22:57:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709794657; x=1710399457; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WahUM+zqL3/MV81SCT1ET9pBkiIjcOfSRMGsDbdTxr8=; b=WYw73DE4+tHjtKVIiKdN/ScrgfLb7pSB+CzSig9uvqL+h944MFSRMq6D30amwWXzJp 6rMRHP6vW5HJBopGeHAPuH5WwQLxWQJG1ZPmPpZaaEZVqguoFmUKVsUjDYiGnxPpjQIE WATYBn7OPVg1v+M/NUPiaFRQLe4W/abChdBUQFDSGvhMJ1+ILSs12CbgtmzEjdArwv+G Bm4vfEMP/WxOTwBF7Bqsq4MS8PkKRh2wF+PEI/wpwBcbsNpxxSsDt/xS9oaYuPPYrTxQ nV2z8b9HSUiDg+SJOLpj0jsM724z+1XScXxBhEu7Gr9+NSm05Jm9B6T7C2D3AS8bWnpK UV7w== X-Forwarded-Encrypted: i=1; AJvYcCVIT/n0r97iXhzVHWFcngFPwnsEMqRckwD6cZhDEaGO84ZbJddhIJdvDbgwr27+sfdr4a2nyeDNvNcS8McLB7IFFkeyuUGFYmgVBD+q X-Gm-Message-State: AOJu0YzcQFyziZn3LjyUAP05lBSI5gOmFT88KKotC6GQPNjE/IT5qyQ5 luLfQIixoc+8Zwyj/cZ1DfnadGZJQBFf4uy1HFlxu5XxtRL2u1EJJuUAaAzKLpJKoM+NJ5ur8HR EwKTlgf/olVmDE9jfqPHeXsqIBGOHge++KyjBacZEYfyJz7i0dgTXKeiQY19z/w== X-Received: by 2002:a05:6a00:4f8f:b0:6e6:5370:3195 with SMTP id ld15-20020a056a004f8f00b006e653703195mr3240570pfb.33.1709794657474; Wed, 06 Mar 2024 22:57:37 -0800 (PST) X-Received: by 2002:a05:6a00:4f8f:b0:6e6:5370:3195 with SMTP id ld15-20020a056a004f8f00b006e653703195mr3240548pfb.33.1709794657163; Wed, 06 Mar 2024 22:57:37 -0800 (PST) Received: from localhost.localdomain ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id o26-20020a056a001b5a00b006e4766d31bcsm11864528pfv.184.2024.03.06.22.57.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 22:57:36 -0800 (PST) Date: Thu, 7 Mar 2024 14:57:27 +0800 From: Tao Liu 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 Subject: Re: [PATCHv8 00/17, CORRECTED] x86/tdx: Add kexec support Message-ID: References: <20240227212452.3228893-1-kirill.shutemov@linux.intel.com> <4iospuc5oxs7vbgm3driasjeyixvgz6yrmym3kzguzngngo7zm@c6ymrw52fn5v> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4iospuc5oxs7vbgm3driasjeyixvgz6yrmym3kzguzngngo7zm@c6ymrw52fn5v> Hi Kirill, On Wed, Mar 06, 2024 at 05:02:45PM +0200, Kirill A. Shutemov wrote: > On Tue, Feb 27, 2024 at 11:24:35PM +0200, 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. > > Thomas, Ingo, Borislav, Dave, > > Any feedback? > > Is there anything else I can do to get the patchset moving? > I tested the patchset with Linux 6.8-rc6, no problem found. With the patchset, a vmcore can be generated successfully in tdx VM and can be analyzed by crash utility. Tested-by: Tao Liu Thanks, Tao Liu > -- > Kiryl Shutsemau / Kirill A. Shutemov