Received: by 10.223.176.46 with SMTP id f43csp2069671wra; Sun, 21 Jan 2018 10:30:50 -0800 (PST) X-Google-Smtp-Source: AH8x226s23Ar1GSed4bYVAT1SOzz/rNJYHjLIyjKKnKt5f+v8Op5ivkP8NyxShxifa9F2LBYx6+8 X-Received: by 2002:a17:902:8487:: with SMTP id c7-v6mr2309587plo.410.1516559450013; Sun, 21 Jan 2018 10:30:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516559449; cv=none; d=google.com; s=arc-20160816; b=yslwqpM08VaGalTseNIa2PKFa6Fjxcl3paP693LqKBpa0kdE7Wbh0C3vH0NS/OyxSm IhmbwPas0CEWADKvslCX5bwWII0AoCG3YYU9ykxCv7z8WyhtnYUmGsxCXd35JEI/rNN9 /Xqpi8zbfe+4Pw8Xm/R+BBTXNCA1eRtcf+N82Kf1DYqlQpZTFexFne3VyVDk7l7HHdzY hPoNrG4TCVV0z/u0jVenN3EjGGMXOYvpfsYaOHSyvXkax+xl2v8Sycxi9fLJUnaErLxM 42i3yJvF8+cf+vVaPFsBJzEmoDShJ35y26gfSd0KMzFC9OTtthtX0Eao7OmLoqS3TyM8 bSwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=aamaJ1EktT8uUS9cOqKoLs5ZkZy8hV0h1+SFFCUU9NE=; b=jKgJAZ1kDDzOjDQtyHuZa7TFQu67meBDwb5pRXN4gwfTxU3iwxUOnbtfjRDK4O+n6R n4atxCcw3grTips7MOCi47hEBIhLpIcUK5LUMOms8Q/libQqemoCHQc7+Mf3GrE/PrMk 8PL2TtUni94WA8MFYT4x6fb5dJm+JdPDHLf2SpBBpndTSJMYpdHU6Puwy2WIpO36CTd8 mK1S9fPoqAKlOX5Cak0BGCGa5ezaZ/eEq5ZOWvRUMRy7pK7xoRFKgdgRVou1YPf1vQuT fDNFf4AMrqptx+JYEjT/319g/HTS8oLigm6zxSQ6O2eOssNE/6O5dSyUzwukhCX09R14 +ZLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=okp+tWpK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g66si12575479pgc.264.2018.01.21.10.30.34; Sun, 21 Jan 2018 10:30:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=okp+tWpK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751301AbeAUSaI (ORCPT + 99 others); Sun, 21 Jan 2018 13:30:08 -0500 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:53297 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750923AbeAUSaH (ORCPT ); Sun, 21 Jan 2018 13:30:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1516559406; x=1548095406; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=aamaJ1EktT8uUS9cOqKoLs5ZkZy8hV0h1+SFFCUU9NE=; b=okp+tWpKnnzLWUiDNo4DGwDVyXQaUEBOxaubsS+FiQrvBZ9K+RGo7rcx ugtND395rHaEcD1zsRbAe3f2obaUfpFEQ+ns6sD1qus2Zq0gdgFglA/tt Dy/zoCV0wna97quWcAKGoY8QZO/JJRps0X4sds+fwnijA9uOz7VKK4K9i M=; X-IronPort-AV: E=Sophos;i="5.46,392,1511827200"; d="scan'208";a="716536975" Received: from sea3-co-svc-lb6-vlan2.sea.amazon.com (HELO email-inbound-relay-1d-2c665b5d.us-east-1.amazon.com) ([10.47.22.34]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 21 Jan 2018 18:30:04 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-2c665b5d.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w0LITxVe115176 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Sun, 21 Jan 2018 18:30:00 GMT Received: from EX13D01EUB003.ant.amazon.com (10.43.166.248) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Sun, 21 Jan 2018 18:29:55 +0000 Received: from [10.85.91.157] (10.43.161.47) by EX13D01EUB003.ant.amazon.com (10.43.166.248) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Sun, 21 Jan 2018 18:29:48 +0000 Subject: Re: [PATCH v2 5/8] x86/speculation: Add basic support for IBPB To: Borislav Petkov , David Woodhouse CC: , , , , , , , , , , References: <1516528149-9370-1-git-send-email-dwmw@amazon.co.uk> <1516528149-9370-6-git-send-email-dwmw@amazon.co.uk> <20180121180621.ufmc5m7nr6v4tjvc@pd.tnic> From: KarimAllah Ahmed Message-ID: <31c52131-5f7a-8af0-3092-5fc9e322a734@amazon.com> Date: Sun, 21 Jan 2018 19:29:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180121180621.ufmc5m7nr6v4tjvc@pd.tnic> Content-Language: en-US X-Originating-IP: [10.43.161.47] X-ClientProxiedBy: EX13D23UWA004.ant.amazon.com (10.43.160.72) To EX13D01EUB003.ant.amazon.com (10.43.166.248) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMDEvMjEvMjAxOCAwNzowNiBQTSwgQm9yaXNsYXYgUGV0a292IHdyb3RlOgoKPiBPbiBTdW4s IEphbiAyMSwgMjAxOCBhdCAwOTo0OTowNkFNICswMDAwLCBEYXZpZCBXb29kaG91c2Ugd3JvdGU6 Cj4+IEZyb206IFRob21hcyBHbGVpeG5lciA8dGdseEBsaW51dHJvbml4LmRlPgo+Pgo+PiBFeHBv c2UgaW5kaXJlY3RfYnJhbmNoX3ByZWRpY3Rpb25fYmFycmllcigpIGZvciB1c2UgaW4gc3Vic2Vx dWVudCBwYXRjaGVzLgo+Pgo+PiBba2FyYWhtZWQ6IHJlbW92ZSB0aGUgc3BlY2lhbC1jYXNpbmcg b2Ygc2t5bGFrZSBmb3IgdXNpbmcgSUJQQiAod3RmPyksCj4+ICAgICAgICAgICAgIHN3aXRjaCB0 byB1c2luZyBBTFRFUk5BVElWRVMgaW5zdGVhZCBvZiBzdGF0aWNfY3B1X2hhc10KPj4gW2R3bXcy OiAgICBzZXQgdXAgYXgvY3gvZHggaW4gdGhlIGFzbSB0b28gc28gaXQgZ2V0cyBOT1AnZCBvdXRd Cj4+Cj4+IFNpZ25lZC1vZmYtYnk6IFRob21hcyBHbGVpeG5lciA8dGdseEBsaW51dHJvbml4LmRl Pgo+PiBTaWduZWQtb2ZmLWJ5OiBLYXJpbUFsbGFoIEFobWVkIDxrYXJhaG1lZEBhbWF6b24uZGU+ Cj4+IFNpZ25lZC1vZmYtYnk6IERhdm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