Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27711rwd; Wed, 31 May 2023 18:29:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7o4nulXzZT+zyrGLEGTTY/vRKgEPPjjyjBMoHYPUjLsTPZmQq/INH8njmPWuULBUXkDLLb X-Received: by 2002:a17:903:120f:b0:1ab:11c8:777a with SMTP id l15-20020a170903120f00b001ab11c8777amr7856061plh.13.1685582987503; Wed, 31 May 2023 18:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685582987; cv=none; d=google.com; s=arc-20160816; b=FHTnOnPGoR+/BfbXl5Q3OnxS2VnMX84+/OoPdHLa9agP7du0Z1RFoHFTeI5KA/wWwI 9jpSbqL6G5x9jC3QEA+3bZ3mnyXWr/ZTBTSvDCWItB7dqZ5nn41ihZd7rrH/V/Z1JnE2 9rsxl9Ku2PZu2IVbRcDbekLILSieMPwgEVse6M8MAHZY3/6Z76xprJzcm2R+vPfx6eWu j8h43W7wHN8VZb4lnOUMMUEtnaFFgbw7UYf3bpBJeHaygB69MJFqs9v2NA++73Wfulxt b0mbycu0I5EDolv+LfZFi1br/fAQ9IQSIO5VOGA+6CGXYK5Bqho//1jVZ5iNiDYLGC7V ed+g== 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=0LkuNLsLG5ya1Cwnwdw2YN8Vmpc29FciIpccN6fkdPo=; b=uLCp1XeHWyY5fkwQf0ff/1snRgTBjC6rqWmii6i1OzBTxMLnh7GVJ3hv72dyzvlLO9 SlRKKXAHg52PTb1XvmEA5cE+a+FySTNNZ/rIhw/k/vQ/PmhrT5ZEvBZ1B0rMQIen0VTr rm+SSE9Jpy0QWtx8FXB1/mxLvy+J3aIbSpWB7Sow9oz9ZoOxeqGDeLu/SFuRwyDjXMVS MLa93NCPBmDvte/rh/rfW2IdQPcsOLj+ODmr0Lu8bWla9jN5emoi5IIAGibC1fUs1qGe hAKE8XzRomfw2f5CuTPLV84E5RwLllzqgHPXPGVLKr0MCA6waASQQJWZqfZQiTTphKiJ lFcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ctUVcJf8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a170902e84600b001ab109ea531si1954267plg.558.2023.05.31.18.29.32; Wed, 31 May 2023 18:29:47 -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=@kernel.org header.s=k20201202 header.b=ctUVcJf8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbjFAA4b (ORCPT + 99 others); Wed, 31 May 2023 20:56:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjFAA4a (ORCPT ); Wed, 31 May 2023 20:56:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDEFD125; Wed, 31 May 2023 17:56:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6760A63FF0; Thu, 1 Jun 2023 00:56:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28E6BC433D2; Thu, 1 Jun 2023 00:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685580986; bh=B0ORSrCb/4iweMpuDamOFn9kQ+8x2ov51pYiyR5GbYY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ctUVcJf8+7tg/gF/3pR1nEpdP1XxE09yyDh97ikwi53j+Mgwud8cnCeGOgg/VvCpI c/ZhlCgts0lcba1wJ9Rw2k+P6EyF+ln6v70WE8MFYzbqwZJgrspaezZS4/4pixiWDE PGtQhJ9FjbmSWhT1vbIg57ennnwhzul5TFUt7AeYt5GaF6czQJP2+XtCYtNXhOPa72 ThlOHZoCSNoBq+41nd0VYLYsfE0gepGB9gD43DZfLSbWmDtCfV5zzxqrLifvTO5+HP p8xTIDarduhO52+xrzlRkKYR4qvIeM2RFVcbQQPLN+jGRkUA92zzyNwRKesSwOs/uh 4RlXDnZlAZZVA== Date: Wed, 31 May 2023 17:56:24 -0700 From: Josh Poimboeuf To: Andrew Cooper Cc: Jon Kohler , Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Pawan Gupta , Daniel Sneddon , "kvm @ vger . kernel . org" , LKML Subject: Re: [PATCH] KVM: VMX: remove LFENCE in vmx_spec_ctrl_restore_host() Message-ID: <20230601005624.ou3iqfbpbsfy3j4e@treble> References: <20230531150112.76156-1-jon@nutanix.com> <20230531231820.trrs2uugc24gegj4@treble> <20230601004202.63yulqs73kuh3ep6@treble> <846dd0c5-d431-e20e-fdb3-a4a26b6a22ca@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <846dd0c5-d431-e20e-fdb3-a4a26b6a22ca@citrix.com> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu, Jun 01, 2023 at 01:50:48AM +0100, Andrew Cooper wrote: > On 01/06/2023 1:42 am, Josh Poimboeuf wrote: > > So each LFENCE has a distinct purpose. That said, there are no indirect > > branches or unbalanced RETs between them. > > How lucky are you feeling? > > You're in C at this point, which means the compiler could have emitted a > call to mem{cpy,cmp}() in place of a simple assignment/comparison. But it's only unbalanced RETs we're concerned about, per Intel. -- Josh