Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1923885rdb; Mon, 9 Oct 2023 07:14:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG03xD4VBb1gFycLgTBE3wPyH15IMCHxMRYy4PwgizmrZ+LutNcVYCV56KIxKF5gxjYX+KF X-Received: by 2002:a05:6808:1155:b0:3a9:bc8d:42ed with SMTP id u21-20020a056808115500b003a9bc8d42edmr18515446oiu.43.1696860884670; Mon, 09 Oct 2023 07:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696860884; cv=none; d=google.com; s=arc-20160816; b=n12EsHXmO43GxR+6Ia89hvxHw51OxZRIrRtowL4sbtoY7eqKeqd8x+7n1VmgHpcG8t M74ByUSQ2iPXbOzYTiAJfrRF+1MDhXKc++tUFI1O4GJhzUc638xzFRAxw2wQ6zrLGpDs f+qSby4O7t99JcTY+w+MCwrN3c5+QoRm/1HV4v9E5bMapRfUy/uA4VEtjoSp/9ucE7wX AZY84yBrSlZ9kr58QKg817+QOcjy9jgIQsjcw3Z2wLTLyGZzgN/uLXVWsmLnPhXLJHcL 9SsTuBSsG365cM9NIjcbNQ37/acJFYbIQoIB7GngXQRR+Py57/B8nrNlR3In7KrPwGmm pZ9A== 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=TtAr6vMHSkU1o8N9xFJERXPEAH/eUDbPVOnY1/d3q0M=; fh=5/y0JURB5VBvvbIutAzaL0W6RJQnajjS/E3ui5V8jig=; b=HKcHnmB5zbYu5mva2U1HZSLUNueTjwtI+piQhSAYgno9rG3WtrZ+2fI2SE1b5Ya0Rf Tr9rFNWyvevOR+nitrGwtOeiVISJyoe3xwA07Oluu+5YhMdUOdrfWk+y87dDF0EY4l2T DbKvVtV9VfuG26pTxGWdXloZFa9Tbzlj47NO/fe0DOpzOd1NN+VYQwNaoVVEPs3FlDVr Y9/xLMCpKwGQZ+OvPiLpki0E+xlW6XhziArTtYFGtB6loe+CTaRH8WEPEMHOm+lRoupD HjtZb0ZWSztrEEdNqaf87EG0T9IzeHCcJHIa9BBMIa83JvUToeKPBAd5zIb9PrfKaWyP zbRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O+60ygEI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c23-20020a631c17000000b0057755c96163si9919057pgc.14.2023.10.09.07.14.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 07:14:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O+60ygEI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id A00A7801CF26; Mon, 9 Oct 2023 07:14:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377358AbjJIOOZ (ORCPT + 99 others); Mon, 9 Oct 2023 10:14:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376918AbjJIOOX (ORCPT ); Mon, 9 Oct 2023 10:14:23 -0400 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 006548E for ; Mon, 9 Oct 2023 07:13:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696860816; 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=TtAr6vMHSkU1o8N9xFJERXPEAH/eUDbPVOnY1/d3q0M=; b=O+60ygEICjNQViaOD+wfaarkAu6PEPJWpVq3f7GIvHghyuIoAg1fxvofr6N8EwaQyFpX2g DVloX+Q5I1/WS/VaWJeDE/Ja24GqUqfVETB5bkarVo4zjoIToy76YiMethp4FnoOgRbYNn FQBk5NfM1c+Wkz7OrfikfICLnJIOTLE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-641-1ORgyTEpN9-o7KLkB5trKw-1; Mon, 09 Oct 2023 10:13:15 -0400 X-MC-Unique: 1ORgyTEpN9-o7KLkB5trKw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DDD5881D787; Mon, 9 Oct 2023 14:13:14 +0000 (UTC) Received: from localhost (unknown [10.72.112.74]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1498240C6EBF; Mon, 9 Oct 2023 14:13:13 +0000 (UTC) Date: Mon, 9 Oct 2023 22:13:10 +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 , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/13] x86/tdx: Add kexec support Message-ID: References: <20231005131402.14611-1-kirill.shutemov@linux.intel.com> <20231009133655.3aqi4kwx7wtqgqtm@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231009133655.3aqi4kwx7wtqgqtm@box.shutemov.name> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 09 Oct 2023 07:14:42 -0700 (PDT) X-Spam-Level: ** On 10/09/23 at 04:36pm, Kirill A. Shutemov wrote: > On Mon, Oct 09, 2023 at 07:49:35AM +0800, Baoquan He wrote: > > On 10/05/23 at 04:13pm, Kirill A. Shutemov wrote: > > > The patchset adds bits and pieces to get kexec (and crashkernel) work on > > > TDX guest. > > > > > > They bring kexec support to the point when we can start the new kernel, > > > but it will only be able to use single CPU. It should be enough to cover > > > the most common case: crashkernel. > > > > Not sure if this question has been raised and answered in the past. Please > > forgive my bad memory if it has. The one cpu is fine to kdump kernel most > > of time, while we enable all CPUs by default when kexec rebooting. And kdump > > kernel with multiple cpu is allowed too. Wondering if there's plan to > > support the multiple cpu on TDX in the future. > > Sorry, I didn't update this part of cover letter properly, but the last > patch of the patchset makes possible to kexec with multiple CPUs and the > 2nd kernel will see them all. It requires support on BIOS side, otherwise > we fallback to single CPU kexec. Oops, I didn't read them carefully. You have mentioned that in the last paragraph of cover letter. That's a great news, thanks.