Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3253899rdb; Thu, 16 Nov 2023 04:57:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IElljZipiyXRlism7wrmoji/s1FOClDitf22CFXmhOjblim61VV+QACw8md+94/40T3ReB6 X-Received: by 2002:a17:903:1306:b0:1cc:60ca:8f24 with SMTP id iy6-20020a170903130600b001cc60ca8f24mr8009941plb.45.1700139430767; Thu, 16 Nov 2023 04:57:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700139430; cv=none; d=google.com; s=arc-20160816; b=AXETMoh+rR8X34d1Ya3ey9TEjrmr7KXBGn3QxEdXhCyZruvyf8wJAiiU7zexNWAZn1 1uDP3EXvKGT7qBY9iW2uNqFWPwVTdlsdR9V+AHv6vS41VbB/U0PHa+vLywz23LzgPqDN fOYdFhdnlXrkKYvHpvJM8VgusAGoJEGymDOQ7cEGR19aWzn0C+z6XFVM5eP+XTabpdKB wJUi7kAuJtSTOrW5EtGte4MPGJ7dvLtrbKnClOxRjrSDndyzbtPx7s1L6dg7bWyJJf2c 4BtbHtEDfpBuAsSsIq1YXQYEc7f/5ppu3wbzDq2xGp1wvSgmCnctDzQEYcuVF7bFX2dN TEHg== 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=roRBIaomooWVUWmr8seBg6uvLArXnVF13tyBu7GFqXM=; fh=b1CtWOVMAK8JQs6DB+SVg+AtEQpeOtyGwB1IJYlzURY=; b=zvXCAQObXRqKdZMi9sCFb88Q3TDBZFFovnLP5NBIQyM4HKmIXR94WU3L3HF51FTyWS iWEab2vAOlZFuv9gjtY6wK5liv3yyzHWx8fYiWx4jcl16Of8J3ReYlDSYY5CJRu6SnWO IS+5eWSHtza/4NTAN2UiTuiOyYmA0ppS3+zKSyzhfj32gVHeFuz/uIx5Y0bL7dEZDrRZ Tpe3Q/clAVgdpBV+gbg8POlSemU96d4h9iEEy5elyOAhijayChTIf44GEpayIlgB8s9q b9pk0Ck9wPMS7WsJfKBRclIQ/ZxrhLouSl/6gFZ5aIYwZWE8JUK5tHegg6A5AFJGKNd9 sAeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YCr5MW8t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id o9-20020a170902d4c900b001c9ebe878d7si12760457plg.109.2023.11.16.04.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 04:57:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YCr5MW8t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1C3E180F6D1A; Thu, 16 Nov 2023 04:57:08 -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 S230527AbjKPM43 (ORCPT + 99 others); Thu, 16 Nov 2023 07:56:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbjKPM42 (ORCPT ); Thu, 16 Nov 2023 07:56:28 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C02FAD for ; Thu, 16 Nov 2023 04:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700139385; x=1731675385; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3wtBlYnCBpLMRFflG+XcS8mBKaNnwDHWxPq3R8KR24Y=; b=YCr5MW8tU1A1Jjhj3Xn9LsNz8BYd03sFi2jGizv/getduVzvfxkXppqv A39J2QagcY2oejtzlO5xU3lqPA/TJGZH2WO+ALntwVgM8/mI3YuRmBnUz rYNfqOdDiO4bY/HfBJf6GIFilhxmo8EuSPpXshotX+Bq3MsAoxm+2otTH Zd9TTA7wpUusEjVjJqMmW1eGAANxZarSb9xLXL9VzIrmld5JG/pEZ8fYw 4u+4DZw8xmlSAJBP9qotuos4qrORMCKuoYibJ+IfyQetaV0D8lEviztOa shmGmFAL79aC/XGSIDjSW8tOlE9ULoFYY6A8ukHMNxaSu7i+ZsTKWzmjX Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="12630480" X-IronPort-AV: E=Sophos;i="6.04,308,1695711600"; d="scan'208";a="12630480" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2023 04:56:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="765289679" X-IronPort-AV: E=Sophos;i="6.04,308,1695711600"; d="scan'208";a="765289679" Received: from tlonnber-mobl3.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.57.18]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2023 04:56:15 -0800 Received: by box.shutemov.name (Postfix, from userid 1000) id 58CE510A325; Thu, 16 Nov 2023 15:56:12 +0300 (+03) Date: Thu, 16 Nov 2023 15:56:12 +0300 From: "Kirill A. Shutemov" To: Baoquan He 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: <20231116125612.daxettqcapled7ac@box.shutemov.name> 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: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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:57:08 -0800 (PST) On Thu, Nov 16, 2023 at 08:10:47PM +0800, Baoquan He wrote: > 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 Could you shared your kernel config and details about your setup (qemu command, kernel command line, ...)? -- Kiryl Shutsemau / Kirill A. Shutemov