Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 055AFC433E7 for ; Thu, 8 Oct 2020 16:36:18 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6BE6721D7D for ; Thu, 8 Oct 2020 16:36:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="GY4DV2cZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6BE6721D7D Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.4529.11844 (Exim 4.92) (envelope-from ) id 1kQYtV-0000gv-G3; Thu, 08 Oct 2020 16:35:53 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 4529.11844; Thu, 08 Oct 2020 16:35:53 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kQYtV-0000go-CZ; Thu, 08 Oct 2020 16:35:53 +0000 Received: by outflank-mailman (input) for mailman id 4529; Thu, 08 Oct 2020 16:35:52 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kQYtU-0000gj-5L for xen-devel@lists.xenproject.org; Thu, 08 Oct 2020 16:35:52 +0000 Received: from esa4.hc3370-68.iphmx.com (unknown [216.71.155.144]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id f77dbc1e-b12c-464e-95a1-364385fe5387; Thu, 08 Oct 2020 16:35:51 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kQYtU-0000gj-5L for xen-devel@lists.xenproject.org; Thu, 08 Oct 2020 16:35:52 +0000 X-Inumbo-ID: f77dbc1e-b12c-464e-95a1-364385fe5387 Received: from esa4.hc3370-68.iphmx.com (unknown [216.71.155.144]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id f77dbc1e-b12c-464e-95a1-364385fe5387; Thu, 08 Oct 2020 16:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1602174951; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=1rsD1tf3DdaaL5KXzOKC2r5GJlph1c1FYx7mIzcvdx8=; b=GY4DV2cZKuuzIWpaS5rH3B22XPk8d9qZ3hZ2Ncp0heDBzAvSCu9B2Rv+ gt19sS8wHWKZlj/khOwRPPkxmKjAd31T5I313f5lq5tRMFMAiELyEftw5 iiySglSIuHiYnHR+PbPMgEVmXamTHoFxf3RxEW4yj7flx++xvF2JdOnco 4=; Authentication-Results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: zWNqFa0adWT5dBcnQf/+qONM/SOOdHUGj4VmpNszqiw++T/lsC+sCgxepJt9ox+lJBvGc2l54a oSZ/llmsSjp7k50wX34zNq3t/ShfdM13cR/KnB7e4naXY8EI9M2ZGAhWWjSf0KExKYeKuuhhif JykAhqGC218ftv8GksTG/c4I1bwZA3efq9u90h4Cy9wKVM9b720Osl/u5csa/jh5mxhvbHwmZF QT5yIP0+r1ODJv0vZD5qEitXm3BFUSuiizQogs1KmLjC7zTVoV2JsP2PEqRWY39FQVeb7jKTlg 39g= X-SBRS: None X-MesageID: 29627191 X-Ironport-Server: esa4.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.77,351,1596513600"; d="scan'208";a="29627191" Date: Thu, 8 Oct 2020 18:35:41 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Jan Beulich , Andrew Cooper CC: "xen-devel@lists.xenproject.org" , Wei Liu Subject: Re: [PATCH v2 6/6] x86: limit amount of INT3 in IND_THUNK_* Message-ID: <20201008163541.GN19254@Air-de-Roger> References: <62ffb078-d763-f845-c4b9-eeacb3358d02@suse.com> <4d66eb4d-4044-8b48-d7cc-354a236e6b26@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4d66eb4d-4044-8b48-d7cc-354a236e6b26@suse.com> X-ClientProxiedBy: AMSPEX02CAS01.citrite.net (10.69.22.112) To FTLPEX02CL06.citrite.net (10.13.108.179) On Mon, Sep 28, 2020 at 02:32:24PM +0200, Jan Beulich wrote: > There's no point having every replacement variant to also specify the > INT3 - just have it once in the base macro. When patching, NOPs will get > inserted, which are fine to speculate through (until reaching the INT3). > > Signed-off-by: Jan Beulich Acked-by: Roger Pau Monné > --- > I also wonder whether the LFENCE in IND_THUNK_RETPOLINE couldn't be > replaced by INT3 as well. Of course the effect will be marginal, as the > size of the thunk will still be 16 bytes when including tail padding > resulting from alignment. I think Andrew is the best one to have an opinion on this. Thanks, Roger.