Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3230230rdb; Thu, 16 Nov 2023 04:11:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlgaUrPtruQdwEpLMi1MYSleGSUo2iSqoXcshD+pvAbBlugfPFYldvi+xCbT8Nif/B1RJ4 X-Received: by 2002:a05:6a20:7da5:b0:187:caeb:5e1f with SMTP id v37-20020a056a207da500b00187caeb5e1fmr1019241pzj.56.1700136686742; Thu, 16 Nov 2023 04:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700136686; cv=none; d=google.com; s=arc-20160816; b=l+mv1FUgWRALKqa9uPOXCkmxh76dD61w3WdKe812Vbk3h8slypEEL4WkDdNnL/Oq1f Q+aAy56H9VPPXBJdlO+xizzakFrNBfwD946PBTqG92DEh3P7mqzmJB74AXulw0lidcgo 3LQFDdCLXpnk0XTG8D01tHxIeXAbGqNTSovgNpwf7h2dqPQrz55psI4/Cyu3v1JXTeA2 s9zTYCshduqi+t/bGQoSfBy7PtcSVf4cqvSvlNqMnOUkZ5wGfKNuSwlsy464Mjdbxa+Z AHZl5XSvsp+mOfVVTB2s2eiUVI4kyjAmA9kVYCnjsFdc6ewkLUBJRbqKTvnqCdkU2M/I blsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2o8llrEy4J3tkRIyO6miHMlYGkEf09QZYyfJI1/fuJU=; fh=n4OnCdto9ks8g3/ozZ8KTfkEmd/DPhDnPmomDuJFCko=; b=ujOj9N+mVWYi41AmdGrEC6JEJa4e0wXWTwDTYmoQ2JnpGLsz9bPlF32S5lLEbwGMiu S6EC0bFpslSvU3FjJtNJf45Uk74d/7qe6Pa2DTF/qFiXooi/LSOD3ZVDuqfr8b7LmgUX dbTdzuHIe35UBJVkI/cIqA2+6fWFjp6gQhBAZSbM95k+d9ZAY9GFBeEBvj0ngQ/fO+p/ zJAc2hLZnOe36gMB3PrEjSQriprBLNHj5TA+mT0el8OSYIpjbJVYJKLJh/BKBDZsR4P3 aXv2MPPooGamML0d8+4IrmXkBi4nbljPbpA+8fBtswe4tog2JB0nWZUjCHBAPzMdJxlR AsAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KJX8+aOW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f2-20020a056a00228200b006c332132d38si12759683pfe.268.2023.11.16.04.11.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 04:11:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KJX8+aOW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E67C48062934; Thu, 16 Nov 2023 04:11:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345205AbjKPMLO (ORCPT + 99 others); Thu, 16 Nov 2023 07:11:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345183AbjKPMLF (ORCPT ); Thu, 16 Nov 2023 07:11:05 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26C0AD53 for ; Thu, 16 Nov 2023 04:10:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700136658; 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=2o8llrEy4J3tkRIyO6miHMlYGkEf09QZYyfJI1/fuJU=; b=KJX8+aOWhbKwvl1I0lgeC6cH9Ktu9lMJjQO4Lc+MIITneR2HT63H07mqugzHyC+f8c+UCL Esf7MMRrFGk5x1LoyZZmU5d5D+wkThj8LwG3XmbXOu5IB5W+SzFTeKLDBxOCvc2ZAE5/KZ 5AThwblssJBXLkZS1Fs2mUq4pCt67zY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-391-O4zObQUCNOqwSdecns0Nxg-1; Thu, 16 Nov 2023 07:10:52 -0500 X-MC-Unique: O4zObQUCNOqwSdecns0Nxg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ADDF285A58C; Thu, 16 Nov 2023 12:10:51 +0000 (UTC) Received: from localhost (unknown [10.72.112.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DFD311C060AE; Thu, 16 Nov 2023 12:10:50 +0000 (UTC) Date: Thu, 16 Nov 2023 20:10:47 +0800 From: Baoquan He 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" , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 00/14] x86/tdx: Add kexec support Message-ID: References: <20231115120044.8034-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231115120044.8034-1-kirill.shutemov@linux.intel.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 16 Nov 2023 04:11:24 -0800 (PST) On 11/15/23 at 03:00pm, Kirill A. Shutemov wrote: > The patchset adds bits and pieces to get kexec (and crashkernel) work on > TDX guest. I finally got a machine of intel-eaglestream-spr as host and built a tdx guest to give it a shot, the kexec reboot is working very well, while kdump kernel always failed to boot up. I only built kernel and installed it on tdx guest. ------------------------------------------ [ 1.422500] Run /init as init process [ 1.423073] Failed to execute /init (error -2) [ 1.423759] Run /sbin/init as init process [ 1.424370] Run /etc/init as init process [ 1.424969] Run /bin/init as init process [ 1.425588] Run /bin/sh as init process [ 1.426150] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. [ 1.428122] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.7.0-rc1-00014-gbdba31ba3cec #3 [ 1.429232] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 2/2/2022 [ 1.430328] Call Trace: [ 1.430717] [ 1.431041] dump_stack_lvl+0x33/0x50 [ 1.431581] panic+0x324/0x340 [ 1.432037] ? __pfx_kernel_init+0x10/0x10 [ 1.432629] kernel_init+0x174/0x1c0 [ 1.433149] ret_from_fork+0x2d/0x50 [ 1.433690] ? __pfx_kernel_init+0x10/0x10 [ 1.434277] ret_from_fork_asm+0x1b/0x30 [ 1.434850] [ 1.435345] Kernel Offset: disabled [ 1.439216] Rebooting in 10 seconds.. qemu-kvm: cpus are not resettable, terminating