Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19056758rwd; Wed, 28 Jun 2023 04:37:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FmLsCvMxSMhwSRIK4Aii3/g6U+OpEHF6mbflc+NUNDk75gYn4b7PJ6/FYw7FuyfZXN3FK X-Received: by 2002:a17:907:60d4:b0:988:a0d6:c501 with SMTP id hv20-20020a17090760d400b00988a0d6c501mr27862532ejc.14.1687952256982; Wed, 28 Jun 2023 04:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687952256; cv=none; d=google.com; s=arc-20160816; b=wv6YKEgmjCMh2bx75821HQD9KTpu6wRyctSfvW0ftzxvFmVhzEIujobTbSkzSfbmVJ 4DeJb3RQcL8QsIRlngarbTCKXm215QVc9JWJUd28YiNV7PJEU0/IQxJj+a/FQHvx39X2 D3GdDlDdzgIxy+1o8wIu1A9d0ucdJyPNk8+yZwRAIt29X3Wgl97S/NjjUm4MIgNLwejm SLcTYZMsJBN7agP24ypRxKLwy7gGRgyhZh3rTvnG9jMc4w4EYPdRCn2HhVINDPJsydWk TVNZjUdLjmK9yFEQT5JLbcBOF7Vn9kMwCHERYKaft6HsGvBc5FucWFPwdeVwbWj4/oLC 1Aog== 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=3D0zkVphuK2SF+WTuA1GlLTLg0tSaGa1VzB0TRXOtHM=; fh=dYNlzoS2jJjACv7FzU5K2SFV3v4tp0ORcrTAEdjbAD0=; b=wK+jHkCddNaLGJJiTD2E5FFa+8fvRPg9IPhkq6fPwav6QddvS17zB72gObrwO8sgDc M3AxFGOrvghR8viHs7SL7C6hPq9/8tKMacD3AENxplUi6AHV9+Mh7LzIv6E6YHjl6SQq QfzapLZ1DVH415m35nMX1HMHdnAHpWbVQ04akLtrLfXwXpgFFYd6El2z1c4+8SEFbYWe wLuagApg7bWBw4r9onyaj6p65KqZsAA8MMwEaejMWjfiJCttlz2qX3gXMem2X9OdhCaB ED9ezZFaBkAmdGZTDCsETGbIHTUX0MI7GZIQUfWT8t6ppuAryBTRIaDcJumbSlTFmva6 vnNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Eyo0jXC+; 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 y2-20020a17090668c200b0098733a40bb9si5433989ejr.855.2023.06.28.04.37.13; Wed, 28 Jun 2023 04:37:36 -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=Eyo0jXC+; 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 S231448AbjF1KyF (ORCPT + 99 others); Wed, 28 Jun 2023 06:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231329AbjF1Kxc (ORCPT ); Wed, 28 Jun 2023 06:53:32 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B4C48F; Wed, 28 Jun 2023 03:53:31 -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=3D0zkVphuK2SF+WTuA1GlLTLg0tSaGa1VzB0TRXOtHM=; b=Eyo0jXC+yZimEt3nWG+saiaJ+z pYrPTC8SzJdJoaw4RJQiFtynXIixHA02Ml1V5fMo6jR0qUUzE2zHOOOWtvTkFTnccHwvF44jT8Ahq 6TLP7uuNlK5Gyf0S0c44WMYb2jhM7+fOjFNA9ybG/hJ0bpL8RlkhtnVTLlan+3nFUK/sn69f1uQGJ F2eMVT47vRJ7rmFT8EVlgjqMcu2nF4krrZeGqINsGQDqTvWiR11t5UOe2UjNI7KexcSTlvbDdDihv eytYP/jqcCEnMrSgMf041BbxfP3JZSnA5QEct/8qRisKMlGlpuEppQEbtRdrJu14yCWACHEoDSjQS DSELVNLg==; 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 1qESnT-003i8K-4X; Wed, 28 Jun 2023 10:53:15 +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 652BB3002C5; Wed, 28 Jun 2023 12:53:14 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3FB52247FBAAB; Wed, 28 Jun 2023 12:53:14 +0200 (CEST) Date: Wed, 28 Jun 2023 12:53:14 +0200 From: Peter Zijlstra To: Borislav Petkov Cc: Tianyu Lan , kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, daniel.lezcano@linaro.org, arnd@arndb.de, michael.h.kelley@microsoft.com, Tianyu Lan , linux-arch@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, vkuznets@redhat.com Subject: Re: [EXTERNAL] Re: [PATCH 5/9] x86/hyperv: Use vmmcall to implement Hyper-V hypercall in sev-snp enlightened guest Message-ID: <20230628105314.GB2439977@hirez.programming.kicks-ass.net> References: <20230601151624.1757616-1-ltykernel@gmail.com> <20230601151624.1757616-6-ltykernel@gmail.com> <20230608132127.GK998233@hirez.programming.kicks-ass.net> <8b93aa93-903f-3a69-77f9-0c6b694d826b@gmail.com> <20230627115002.GW83892@hirez.programming.kicks-ass.net> <20230627120502.GFZJrQbgSgOhj/44pW@fat_crate.local> <20230627133834.GA2412070@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230627133834.GA2412070@hirez.programming.kicks-ass.net> 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 Tue, Jun 27, 2023 at 03:38:35PM +0200, Peter Zijlstra wrote: > That said; there is a tiny difference between: > > ALTERNATIVE_2(oldinst, newinst1, flag1, newinst2, flag2) > > and > > ALTERNATIVE(ALTERNATIVE(oldinst, newinst1, flag1), > newinst2, flag2) > > and that is alt_instr::instrlen, when the inner alternative is the > smaller, then the outer alternative will add additional padding that the > inner (obviously) doesn't know about. New version: https://lkml.kernel.org/r/20230628104952.GA2439977%40hirez.programming.kicks-ass.net