Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7474661rwd; Tue, 20 Jun 2023 01:34:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xnceCnhZTsM51YVqAO2qc+JW9mfdEzV2b/eL6rpaqY5ot1xeXKjwsIlMkfV11OMq/xoHl X-Received: by 2002:a05:620a:2809:b0:762:1bd3:b237 with SMTP id f9-20020a05620a280900b007621bd3b237mr13041854qkp.50.1687250050900; Tue, 20 Jun 2023 01:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687250050; cv=none; d=google.com; s=arc-20160816; b=XIov1ffnqdQGIfAb1Siolp7JJeDP7p9x8xx7/60++nvxOHhayr993yGpELfOgzX5v6 S5USxo+QXsEZKJz5A23hMdYdNsXm8c7Erqs+zM3ej7Fb/lgr+jk9bsBNicd6j/53WQ8s 5zo+vqbxJ4nqZcOhd+yM9CRYgVLyJfyrDS33LblPrF16AaxfU1TN1sU3WtCxrkkWU3YR tE/3PNOuFYyBqVkad2MujgYYMfaSG7+L5pVF31bNmHIW0F9oZvvbuieJRiOf6Q+SR8t8 UQ18Tyb28rBUKd0vCY09HJaME3BQ7tpGVzDEBvySpwSbXvSKvgnp/CRSAMLv2goJRQHF hksg== 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=QeFioVa/tT3b1wnnpMGvpj+qCiUmg3JZi11EixpKVqs=; b=uXnoSmf6SoLVyBqvEfRhAvt8sGkxcKwjyDP2LCdQUYiISegmC5D3MxkI7q/zZWiatm BYM1eztejbtH8PW9vkF+I3JBKFSqA7SRt+IfGK4/42iRbwDiRdQcR1mpvbIX/QWKXUP6 6Wq9IODUlsELiRMBXrQRvZc30bzLY7YlywgrJ0l1hHUxhIFhWpb703Scnw/VuVBG2aGU RV400HDmE7wQRWR5Gooh/R8Mxm5wAIYNMrxDeOHRXCZhXTQQ8ue9SbN0z00AQMsDTNzP FunHHEsK46AfYKuYt9sG2FZv3mRc5/YUTc0PQpirCAWbZc2kOlydxMvCN7NcgmzD0WwS vJvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=dUn5+0Uy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v27-20020a63b95b000000b0054405fa9251si1209642pgo.896.2023.06.20.01.33.42; Tue, 20 Jun 2023 01:34:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=dUn5+0Uy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231769AbjFTILz (ORCPT + 99 others); Tue, 20 Jun 2023 04:11:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbjFTILw (ORCPT ); Tue, 20 Jun 2023 04:11:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 463E6DD; Tue, 20 Jun 2023 01:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QeFioVa/tT3b1wnnpMGvpj+qCiUmg3JZi11EixpKVqs=; b=dUn5+0Uyr4akY3p1SUMDzGKKBT QAdLAKK4E+C+Yt3BU3DoZZrHeqVxULXclOs60yQktH/UFwl/P0NZZDA2xhZuJxJqr1iVmwV5zVCHP tsSYF8K/hT7Gt3OA5J0anCxH5Z7qdo06kyQVe0u/G/M5ufZwHZA3Jlvl2qszVfM7GgccEgMYHwTFF BE5aR+d1mWXB1jMPO9TvKbdjCPLbgBQyfW0HxPjUpHUECScS8icqDPkzcTXSwnHNYZiWWLP7Wcbwy ARYPhLd08VfBHmgJ6kBcxm8mmZEI5SG4BY/GRh6YJwEOnZXXTXaFgd6B64nu+fOQwwv4Dr08k5Rjc 4tISiuNw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qBWSa-00CqQg-Vu; Tue, 20 Jun 2023 08:11:33 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id BA2383002F0; Tue, 20 Jun 2023 10:11:31 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A00FB21440F48; Tue, 20 Jun 2023 10:11:31 +0200 (CEST) Date: Tue, 20 Jun 2023 10:11:31 +0200 From: Peter Zijlstra To: "Huang, Kai" Cc: "kirill.shutemov@linux.intel.com" , "kvm@vger.kernel.org" , "Hansen, Dave" , "david@redhat.com" , "bagasdotme@gmail.com" , "ak@linux.intel.com" , "Wysocki, Rafael J" , "linux-kernel@vger.kernel.org" , "Chatre, Reinette" , "Christopherson,, Sean" , "pbonzini@redhat.com" , "tglx@linutronix.de" , "linux-mm@kvack.org" , "Yamahata, Isaku" , "Luck, Tony" , "Shahar, Sagi" , "imammedo@redhat.com" , "Gao, Chao" , "Brown, Len" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Huang, Ying" , "Williams, Dan J" Subject: Re: [PATCH v11 18/20] x86: Handle TDX erratum to reset TDX private memory during kexec() and reboot Message-ID: <20230620081131.GV4253@hirez.programming.kicks-ass.net> References: <5aa7506d4fedbf625e3fe8ceeb88af3be1ce97ea.1685887183.git.kai.huang@intel.com> <20230609132301.uvvp27yr5kpenl6f@box.shutemov.name> <58f34b4b81b6d6b37d3386dec0f073e6eb7a97ff.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58f34b4b81b6d6b37d3386dec0f073e6eb7a97ff.camel@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 12, 2023 at 03:06:48AM +0000, Huang, Kai wrote: > + __mb(); __mb() is not a valid interface to use.