Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1189738rdh; Fri, 27 Oct 2023 07:13:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHBGplQmpzmX4ab+yuTvO3vIG9lCHmmzXEYh1AqnXOV2rzD0vc7fyZc4WQOr3NwLP8sM6N X-Received: by 2002:a81:ae22:0:b0:5ad:7fc2:4787 with SMTP id m34-20020a81ae22000000b005ad7fc24787mr3328117ywh.15.1698415985945; Fri, 27 Oct 2023 07:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698415985; cv=none; d=google.com; s=arc-20160816; b=LKIIRz0leqlQ1TLtbybVuCtdELqDkznBjgWwAFddcz6MEACXhfpVyvx1r3A+Xdq0TJ NwsYmOBZl4epACgCIarco69NOv6MrjFbCZX1qXeFCdLCcR+GY48KUK9whsxmBTw0WRga yacMFOMy1EwldhABlGXHnUY+i4ecwjeL/uCv1AIaX1l0CG9bWn+ZclYoZHu6G8m+P5cA nm+UAw/75+WV0dFZ7h9b3w2G+bksZjqANRcbRj6RtQXAHkLmTm5yMWieqtqv784EwHAv KxTzG5Foglysidt8c/cyDWwJp3oGdQFWGrHoaxlrzMUT9CKmkv8tlXSlzxmQgjy8iHS3 P2jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :references:cc:to:content-language:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=VO9vu7bmoU2J/IF2eJaU7O8plpGP9TRcwNE4oVJ9DFc=; fh=klQuRpBkVE9qkk0q2xMwxzWVy5gfceOFxPryFj5c+FU=; b=CkGezx2773RfNjBa1GBuVnVGI6pTmbMgSm2gZqbtJ3C8EyLFgzKMQvvfaLb6NMooTI 0ch3qGmVuSbYkEzI0LANQAafnobpkwGIs8+X0+qFuGu+8shu3XIQOwvqTmee7NE+t/b7 npK/fjBE368Vg0WNn+4TaFSeyVMrgb++5oAOqnogNfVOpQ1xRyO4P2jFd09Sh/UA7XEv LzxuSklle/oH0MIiPpcPfgxV2JGvdPsb7kB5Z7k3B/p93nuzMj3WcPyz4eehytMmFz75 Fsrw/SfGhHW9axahNiZgdCFHbiUFbPSdkooVhpP9rRKDRvBZaF43sQzt3EZPAd/jOKTd rN4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@citrix.com header.s=google header.b=qE4Uoj1Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=citrix.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u66-20020a0deb45000000b005a22a113fc4si2567354ywe.143.2023.10.27.07.13.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@citrix.com header.s=google header.b=qE4Uoj1Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=citrix.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A3D4F822013C; Fri, 27 Oct 2023 07:13:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345991AbjJ0OMv (ORCPT + 99 others); Fri, 27 Oct 2023 10:12:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231626AbjJ0OMt (ORCPT ); Fri, 27 Oct 2023 10:12:49 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C0C0B8 for ; Fri, 27 Oct 2023 07:12:47 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-533d31a8523so3213899a12.1 for ; Fri, 27 Oct 2023 07:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1698415966; x=1699020766; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :content-language:subject:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=VO9vu7bmoU2J/IF2eJaU7O8plpGP9TRcwNE4oVJ9DFc=; b=qE4Uoj1ZTvUv8XdszrAUjCECP7MfseoU3Je07Hj/42HKVLVpo3jHoZKnwcrpkdNYKK BpKgwamPIQuOAipkXu6erU2r4iygAxtyg8S4FVLBg4EqEZAhUXkP7SArfsOx/Cbc2rDh 0pHIAQGHAhlDZYXMNeBaGLyzpz5ZYYbYdLsAg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698415966; x=1699020766; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :content-language:subject:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VO9vu7bmoU2J/IF2eJaU7O8plpGP9TRcwNE4oVJ9DFc=; b=BMFsSXKIkxtWL+n7ciKr4RtslHVI4yJwMG+viNdmGGLi6HcPI0tr3vfv/y1s8N99O5 vRsQuCruQpf57S9hJ7UcfkSi56QLkxfkxHL+FeksDtjO+Q8MDbSZ0T7qU3VD39zoHGay koM9qro3IoGq0I9bWJFztZdQg7klsDoId8/QblKwznbK/AocZn3ixGi70bVd4y3FkG26 X0ArW+I5rTFIwKyOnCvlVZuMORDkD1vfXRlPVGBgMHvMcoDpX1B5gHzuS7iqvgLhkHAm a6fb49uPnfSKDCb8iuGuiQTcP2ExPQa3Oly8dHysv2DU1/RIPri78zeyro0U7Je9lPno 63rg== X-Gm-Message-State: AOJu0YzS7Ee90J+vZRhRg7fntBPzRrftADfH8pd8BdM8ZYZBY1eoEDdV J1/beyhW6MDEYqwdC8480raxLw== X-Received: by 2002:a05:6402:134f:b0:522:4dd0:de72 with SMTP id y15-20020a056402134f00b005224dd0de72mr2385437edw.27.1698415965900; Fri, 27 Oct 2023 07:12:45 -0700 (PDT) Received: from [10.80.67.28] (default-46-102-197-194.interdsl.co.uk. [46.102.197.194]) by smtp.gmail.com with ESMTPSA id g16-20020a056402321000b0053dda7926fcsm1270193eda.60.2023.10.27.07.12.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Oct 2023 07:12:45 -0700 (PDT) Message-ID: Date: Fri, 27 Oct 2023 15:12:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Andrew Cooper Subject: Re: [PATCH v3 1/6] x86/bugs: Add asm helpers for executing VERW Content-Language: en-GB To: Pawan Gupta Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Josh Poimboeuf , 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, Alyssa Milburn References: <20231025-delay-verw-v3-0-52663677ee35@linux.intel.com> <20231025-delay-verw-v3-1-52663677ee35@linux.intel.com> <8b6d857f-cbf6-4969-8285-f90254bdafc0@citrix.com> <20231025220735.gpopnng76klkbuu3@desk> <0ee3e3cd-01b2-4662-ba08-d137663f1699@citrix.com> <20231027134829.7ehdjwf5pfcqr6xp@desk> Autocrypt: addr=andrew.cooper3@citrix.com; keydata= xsFNBFLhNn8BEADVhE+Hb8i0GV6mihnnr/uiQQdPF8kUoFzCOPXkf7jQ5sLYeJa0cQi6Penp VtiFYznTairnVsN5J+ujSTIb+OlMSJUWV4opS7WVNnxHbFTPYZVQ3erv7NKc2iVizCRZ2Kxn srM1oPXWRic8BIAdYOKOloF2300SL/bIpeD+x7h3w9B/qez7nOin5NzkxgFoaUeIal12pXSR Q354FKFoy6Vh96gc4VRqte3jw8mPuJQpfws+Pb+swvSf/i1q1+1I4jsRQQh2m6OTADHIqg2E ofTYAEh7R5HfPx0EXoEDMdRjOeKn8+vvkAwhviWXTHlG3R1QkbE5M/oywnZ83udJmi+lxjJ5 YhQ5IzomvJ16H0Bq+TLyVLO/VRksp1VR9HxCzItLNCS8PdpYYz5TC204ViycobYU65WMpzWe LFAGn8jSS25XIpqv0Y9k87dLbctKKA14Ifw2kq5OIVu2FuX+3i446JOa2vpCI9GcjCzi3oHV e00bzYiHMIl0FICrNJU0Kjho8pdo0m2uxkn6SYEpogAy9pnatUlO+erL4LqFUO7GXSdBRbw5 gNt25XTLdSFuZtMxkY3tq8MFss5QnjhehCVPEpE6y9ZjI4XB8ad1G4oBHVGK5LMsvg22PfMJ ISWFSHoF/B5+lHkCKWkFxZ0gZn33ju5n6/FOdEx4B8cMJt+cWwARAQABzSlBbmRyZXcgQ29v cGVyIDxhbmRyZXcuY29vcGVyM0BjaXRyaXguY29tPsLBegQTAQgAJAIbAwULCQgHAwUVCgkI CwUWAgMBAAIeAQIXgAUCWKD95wIZAQAKCRBlw/kGpdefoHbdD/9AIoR3k6fKl+RFiFpyAhvO 59ttDFI7nIAnlYngev2XUR3acFElJATHSDO0ju+hqWqAb8kVijXLops0gOfqt3VPZq9cuHlh IMDquatGLzAadfFx2eQYIYT+FYuMoPZy/aTUazmJIDV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f6W9CxSyQ0qmZ2bXsLQYRj2xqd1 bpA+1o1j2N4/au1R/uSiUFjewJdT/LX1EklKDcQwpk06Af/N7VZtSfEJeRV04unbsKVXWZAk uAJyDDKN99ziC0Wz5kcPyVD1HNf8bgaqGDzrv3TfYjwqayRFcMf7xJaL9xXedMcAEQEAAcLB XwQYAQgACQUCUuE2fwIbDAAKCRBlw/kGpdefoG4XEACD1Qf/er8EA7g23HMxYWd3FXHThrVQ HgiGdk5Yh632vjOm9L4sd/GCEACVQKjsu98e8o3ysitFlznEns5EAAXEbITrgKWXDDUWGYxd pnjj2u+GkVdsOAGk0kxczX6s+VRBhpbBI2PWnOsRJgU2n10PZ3mZD4Xu9kU2IXYmuW+e5KCA vTArRUdCrAtIa1k01sPipPPw6dfxx2e5asy21YOytzxuWFfJTGnVxZZSCyLUO83sh6OZhJkk b9rxL9wPmpN/t2IPaEKoAc0FTQZS36wAMOXkBh24PQ9gaLJvfPKpNzGD8XWR5HHF0NLIJhgg 4ZlEXQ2fVp3XrtocHqhu4UZR4koCijgB8sB7Tb0GCpwK+C4UePdFLfhKyRdSXuvY3AHJd4CP 4JzW0Bzq/WXY3XMOzUTYApGQpnUpdOmuQSfpV9MQO+/jo7r6yPbxT7CwRS5dcQPzUiuHLK9i nvjREdh84qycnx0/6dDroYhp0DFv4udxuAvt1h4wGwTPRQZerSm4xaYegEFusyhbZrI0U9tJ B8WrhBLXDiYlyJT6zOV2yZFuW47VrLsjYnHwn27hmxTC/7tvG3euCklmkn9Sl9IAKFu29RSo d5bD8kMSCYsTqtTfT6W4A3qHGvIDta3ptLYpIAOD2sY3GYq2nf3Bbzx81wZK14JdDDHUX2Rs 6+ahAA== In-Reply-To: <20231027134829.7ehdjwf5pfcqr6xp@desk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 27 Oct 2023 07:13:02 -0700 (PDT) On 27/10/2023 2:48 pm, Pawan Gupta wrote: > On the bright-side, I am seeing even better perf with VERW operand > out-of-line: > > Baseline: v6.6-rc5 > > | Test | Configuration | v1 | v3 | > | ------------------ | ---------------------- | ---- | ---- | > | build-linux-kernel | defconfig | 1.00 | 1.00 | > | hackbench | 32 - Process | 1.02 | 1.06 | > | nginx | Short Connection - 500 | 1.01 | 1.04 | > > Disclaimer: These are collected by a stupid dev who knows nothing about > perf, please take this with a grain of salt. :) Almost as if it's a good idea to follow the advice of the Optimisation Guide on mixing code and data, which is "don't". ~Andrew