Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1898124rdb; Mon, 9 Oct 2023 06:33:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHR1XZ8XAChgY6KpLX/v5Qx1Sptga5nuRW4vkYk7Cg3USkuSjwnOnb4mxZ6EJL8kSHK8Gbc X-Received: by 2002:a05:6358:93a5:b0:143:9763:e6 with SMTP id h37-20020a05635893a500b00143976300e6mr10778753rwb.0.1696858396740; Mon, 09 Oct 2023 06:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696858396; cv=none; d=google.com; s=arc-20160816; b=dkxWa0nA4yXv6apQLv4Fk38ABfnv1cYMMmUw48MGrlyMCxPAcLV5GrDn9+yRYRL72I ZBb/sDQBnd8co2I5kIWI4WwBHxeVWCR0q7zIDN9o9cqWxzVRJUxJ87FS/ZBBh24y8mV+ tWcCts8nbuLcv/XEMj/kWBF1TvKBDH19Puq73PUMWLcQjdf1uWThILa0w5Mh9VppeYWY YD0uNihUJhT/jm1GodQwBaa3wzhTXeJ7lXkjbdgtuf2sK1oxC0TJYXiOMUygFh2gnC1i WjkcbRzN7sRTz3NYDmw0fb/OUn1pnoxVqBpJTP18AknfT0BCLZBlAa/zPDpuHU36cqDW ppFA== 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=QUqVdYugQstsq5mof+aK7qY7GEYHXsZlpfhJWFsneCs=; fh=HXgKhMpP3NR0oFIvtr7coEU3Z/s2pWD4Y60/u8oLjgg=; b=sQ1XtcYH1NZ0X/3CZNHjzyJfZ++sDd5F3iYvmCcKVahNDgYoS99sNkCnesakJXR0NA SFoGToHUPdF1HUr/UkKXPwh9PhfB1bL9wOW4Qno+ANhnbHQAv8fxVAJD4LBETNq0MJaZ XQmSo24L24+yNkIBqJgSsYMze7tDRwlNmK9vcZKVqXFmava+YT2AqdZqi8wJv28G5H1t qHK43Lf2HZ/248zYyS2mY2itevaTg8g4WL8brX3wb8XZ7d0YMCo0vcFkqLKjaHxcwLoE OoZ8XQH3q/eVYeyQ4Fj4igOdXaiw+W3T5Yk8uF5lxHr0/zutAL/LKnuSPBEOwTK8+wUp OUWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b9iqcUnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id w29-20020a63935d000000b0058a4883e6casi6375067pgm.225.2023.10.09.06.33.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 06:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b9iqcUnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 5BC038030FAE; Mon, 9 Oct 2023 06:33:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377130AbjJINdB (ORCPT + 99 others); Mon, 9 Oct 2023 09:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377125AbjJINdA (ORCPT ); Mon, 9 Oct 2023 09:33:00 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A3729C for ; Mon, 9 Oct 2023 06:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696858378; x=1728394378; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=KQiIeN5ST8uGhtT0LhMJYQQaH+STe2BjgqRaOYnAfTw=; b=b9iqcUnqbutObW/AHOoYiMSoLUbgCcT09dKNXLIAbH1EY5M3mWRJ8vak lbwSjC2CS77CwAHczrNoKAsJkGRnZ7ZLNty9eJ9NzTaFCgwW/6f68lrOG HsLMXgkm8GQqtLkcJtEagtg6BbiMceKTZDTpgoCuTHsJfYFqKmNJEGMmt ebNd86T4cBJwTXSgtwcubUgDIvyMb2c/87CnKNH0Y8iws1M6d6vVprCCI 9yOySRqFW75+u7E15uHZIJPibnlv3zCMbaLThb1VmKGFavGvj7SMRSCqu izEVGXTEoTMeDCkZDzfh9U0yH9pxKSoDCZaDwXohMd2P1xNkH6qmgu6is g==; X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="374473688" X-IronPort-AV: E=Sophos;i="6.03,210,1694761200"; d="scan'208";a="374473688" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2023 06:32:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="782491307" X-IronPort-AV: E=Sophos;i="6.03,210,1694761200"; d="scan'208";a="782491307" Received: from ahuge-mobl.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.40.233]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2023 06:32:53 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id 4EAB710A196; Mon, 9 Oct 2023 16:32:51 +0300 (+03) Date: Mon, 9 Oct 2023 16:32:51 +0300 From: "kirill.shutemov@linux.intel.com" To: "Huang, Kai" Cc: "tglx@linutronix.de" , "mingo@redhat.com" , "x86@kernel.org" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "Edgecombe, Rick P" , "Reshetova, Elena" , "Nakajima, Jun" , "rafael@kernel.org" , "peterz@infradead.org" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Hunter, Adrian" , "thomas.lendacky@amd.com" , "linux-kernel@vger.kernel.org" , "kexec@lists.infradead.org" , "linux-coco@lists.linux.dev" Subject: Re: [PATCH 05/13] x86/kexec: Keep CR4.MCE set during kexec for TDX guest Message-ID: <20231009133251.lmdubojesxtwzdyl@box.shutemov.name> References: <20231005131402.14611-1-kirill.shutemov@linux.intel.com> <20231005131402.14611-6-kirill.shutemov@linux.intel.com> <2c76fa83b154566e49425e3a7ccc9a268318d63a.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2c76fa83b154566e49425e3a7ccc9a268318d63a.camel@intel.com> X-Spam-Status: No, score=2.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 06:33:13 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 12:30:55PM +0000, Huang, Kai wrote: > On Thu, 2023-10-05 at 16:13 +0300, Kirill A. Shutemov wrote: > > TDX guests are not allowed to clear CR4.MCE. Attempt to clear it leads > > to #VE. > > > > Use alternatives to keep the flag during kexec for TDX guests. > > > > The change doesn't affect non-TDX environments. > > Nit: non-TDX-guest environments. ? Okay, will fix. > > Signed-off-by: Kirill A. Shutemov > > Reviewed-by: Kai Huang Thanks. -- Kiryl Shutsemau / Kirill A. Shutemov