Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1418074rda; Mon, 23 Oct 2023 11:57:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhJ6z6bBFpeJeu/Sionz4dqz04KZEOH10NHkYuH/VlklfPaJDkpBzdzCjW8x2j4Xy5LApZ X-Received: by 2002:a05:6871:3142:b0:1e9:f1cc:a415 with SMTP id lu2-20020a056871314200b001e9f1cca415mr14340907oac.57.1698087422232; Mon, 23 Oct 2023 11:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698087422; cv=none; d=google.com; s=arc-20160816; b=r8yDa3OXxZsTuuJjyuLEZUKMeowZgnfn4LWFrcejt3YnjKTfyfHCmhORgXpdbxElx/ PypkcH4Gth5ezTsUVd75CSwK9W0iZwDQt1YXLi0fENBtsuYL/Qedk1G9xzJdMk3QILSe kV2eqO/wrEOkWehYohfHe7UsfdzFsdOt/GCh08RKKmGrk75TSBHUJ4v2qy+nJSKylpBZ 5NodCMK0/c7zbmw2eMnrmkl0G7tclCWkKSsMnafvWoznWWVtSWsjRaUIkfPuf8FsXb9W yWhBu+GSg04C+Ap0772DBn/MqCK2IWDWfG9cUHU/OJgBy4qQWRFZwH/XQHoAhYzhzKfi TfoA== 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=bYdTWlxViVBYp297sDBzcCVoNdX4yoXHQE72ylGn0dk=; fh=aHtWyo1LftguigmcolvEUK3WodFxtdvTlGnLJzRaq3I=; b=PbwSqI6ZVxaaEposwMh1DBW4ufLKMfqIcgSp6H8VBR3+SSzmujS0mhCq/+wgUa1IhM 4Ev4yVfFdFHTqElYBobluDDAZj7lfYsQ+ece+dKaaw1CtPV87fv7QO3ccMwrlGqcJQke 5jkxnNtQucPSC8dcddGakauMgHqWpJlrdDUymZt6BK5UF7HTwVrKI+RirvRVdZlUWh+L JlLdlV6rYsRlCaihPeTg+lpYccX+tKN0gySXLBzLMxTdgsbQG1K4+wywC1XIaFJ3oWRz uvzqtnN4a5Fo45m6ilKv9+aDSeL7hesHuHKdFI9Xwlcb5NuPccKye59Iho2Zwd9E7rRW P5wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="l94/Yqjx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s9-20020a637709000000b005b368301d97si7129067pgc.305.2023.10.23.11.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 11:57:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="l94/Yqjx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D16B38083DE6; Mon, 23 Oct 2023 11:56:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230198AbjJWS4t (ORCPT + 99 others); Mon, 23 Oct 2023 14:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbjJWS4r (ORCPT ); Mon, 23 Oct 2023 14:56:47 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1943E110; Mon, 23 Oct 2023 11:56:46 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8CF3C433C8; Mon, 23 Oct 2023 18:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698087405; bh=RKQ1pbNtIiiIYv1ffY3rTP4iIBSITuSmtnVZMc7D0fA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l94/Yqjx0pS0ri8nG0RUzL16OruKvi8dMjYHWpDbZtbBjoRaONTmJH1o9kqKijb4G RGVM0arXQFOZ8fQH8q0aSuTWtbq/HnAgEgjEEBHol0EnvaBTCG9x37m9Oq9HLWhGBa kAe75jrQ/W4rMZyRJ6Bt//lkfj18Ou++/4cBHqeWE9DzYkjm+tISl63ya7seszPfyi zlFz+hnann6vD2dM3v7vxtvf8BIB1SbGRGEnE/+i6tGNnIB/Il8Qdipu/O+vE8A29d kqLJDb0oWum0AuGWjBnnEzV1OwWCV7jTNGNNqwhc7r4v+NVsmPsUQ/jHAByHIQ2GF3 pdUhuOiRVCkYw== Date: Mon, 23 Oct 2023 11:56:43 -0700 From: Josh Poimboeuf To: Pawan Gupta Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Andy Lutomirski , Jonathan Corbet , Sean Christopherson , Paolo Bonzini , tony.luck@intel.com, ak@linux.intel.com, tim.c.chen@linux.intel.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, Alyssa Milburn , Daniel Sneddon , antonio.gomez.iglesias@linux.intel.com Subject: Re: [PATCH 6/6] KVM: VMX: Move VERW closer to VMentry for MDS mitigation Message-ID: <20231023185643.oyd4irw43ztdqtps@treble> References: <20231020-delay-verw-v1-0-cff54096326d@linux.intel.com> <20231020-delay-verw-v1-6-cff54096326d@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231020-delay-verw-v1-6-cff54096326d@linux.intel.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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]); Mon, 23 Oct 2023 11:57:00 -0700 (PDT) On Fri, Oct 20, 2023 at 01:45:29PM -0700, Pawan Gupta wrote: > @@ -31,6 +32,8 @@ > #define VCPU_R15 __VCPU_REGS_R15 * WORD_SIZE > #endif > > +#define GUEST_CLEAR_CPU_BUFFERS USER_CLEAR_CPU_BUFFERS I don't think the extra macro buys anything here. -- Josh