Received: by 10.223.176.5 with SMTP id f5csp2814149wra; Thu, 1 Feb 2018 06:31:34 -0800 (PST) X-Google-Smtp-Source: AH8x226DearPgn9xDnTx+xVolPmHXsOZo8LqovTbRYg0WFTWxWIvViP8zK9PwdaWprO00eha7Fes X-Received: by 10.99.110.200 with SMTP id j191mr26274335pgc.348.1517495493875; Thu, 01 Feb 2018 06:31:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517495493; cv=none; d=google.com; s=arc-20160816; b=EsvX2dqSQuINivyAS3hocU/pOpYjK5ZKge04DK1jAt5UktgM0n/FgSmzYgEuTAOaaP WvNUMPXvTBQRU+f1xe/zz8BK5GZIc6P3zTgaCzwrZeR/TsGoYVfPMi/t9h0Ded0XdePw ox4PAarULOuG8oeH7cTnkxb8iKCZcmlwdVpW3QnU2ZptGwLyiYRjfFM28vc4JCs9S05o HnzrIUVwEOBbbQngt55z00KEON1tntoEfw0fX9vPTjI6xW8YydQvdojMz3/FgCdqKUSK s8rPeb0sGlhonu5NbHi0W0rnXimwttEomwKLbFrMTFd9GNVXMbV4aa9dAA6EgoK24b3c WYoQ== 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=ryv30bWqio1NqMwUhjIzw+Ew68M9iIdhYoxp3Wb3nYI=; b=bo9dBbSBdk1zaCPeN5FQucFH3gwdQI+zfoEKnTMlRW02Iiw21bLd5ejjF6fF1DbZA7 kPsv2qC1WIZc9RMtOVLfm2slYjJ2l0WNywQtLdrCcYrZCLxy4VQcIvy2zEK+iLcXOxaw kXvJ1zpnXPQY80SiicGd9wtnX8DM5YXcVNlfny9sXtaP8RMhLd0xggNsrsYDSYh943yl mpWd9rGfnNpbweMK4sPA/eRQ9k6VI5FW8fm02pshg4pZRBe1RmSXU4Rxb0x1w3sMwkGa LQ/nPJUZvySLljRNfeRbQFmDnb5OIpZzti6Xvlbtln09y9O7iO0CLObBSBQx1gy2Tybg /gWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=iR+1Ha72; 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 g12si942030pfk.368.2018.02.01.06.31.18; Thu, 01 Feb 2018 06:31:33 -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=iR+1Ha72; 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 S1751666AbeBAO30 (ORCPT + 99 others); Thu, 1 Feb 2018 09:29:26 -0500 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:13348 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408AbeBAO3W (ORCPT ); Thu, 1 Feb 2018 09:29:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1517495362; x=1549031362; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=ryv30bWqio1NqMwUhjIzw+Ew68M9iIdhYoxp3Wb3nYI=; b=iR+1Ha72DXmGuaO54cppebhBC5KO4wbSMLR/CG62rytdbgmQvz+UXoBB NVvqj56oxEdoPqD29F9BsJPMbxruCZdamc9kRlxhRdC0sOt+tIEfOe1qs yjOK1jCSag0RxPAzh2XF676IX3J35pIgRxYxiXkAlG0NjCMHBl5nk1Uqr k=; X-IronPort-AV: E=Sophos;i="5.46,444,1511827200"; d="scan'208";a="592063007" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Feb 2018 14:29:11 +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-5dd976cd.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w11ESrgs094095 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 1 Feb 2018 14:29:03 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; Thu, 1 Feb 2018 14:29:01 +0000 Received: from [10.28.86.61] (10.43.162.191) by EX13D01EUB003.ant.amazon.com (10.43.166.248) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Thu, 1 Feb 2018 14:28:52 +0000 Subject: Re: [PATCH v5 4/5] KVM: VMX: Allow direct access to MSR_IA32_SPEC_CTRL To: Konrad Rzeszutek Wilk CC: Jim Mattson , KarimAllah Ahmed , kvm list , LKML , "the arch/x86 maintainers" , Asit Mallick , Arjan Van De Ven , Dave Hansen , Andi Kleen , "Andrea Arcangeli" , Linus Torvalds , Tim Chen , Thomas Gleixner , Dan Williams , Jun Nakajima , "Paolo Bonzini" , David Woodhouse , Greg KH , Andy Lutomirski , Ashok Raj References: <1517427467-28567-1-git-send-email-karahmed@amazon.de> <1517427467-28567-5-git-send-email-karahmed@amazon.de> <06cb88da-f355-41ed-380f-7daa8ddf6159@amazon.com> <20180201042650.GD21751@char.us.oracle.com> <20180201141957.GC19621@char.us.oracle.com> From: KarimAllah Ahmed Message-ID: Date: Thu, 1 Feb 2018 15:28:47 +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: <20180201141957.GC19621@char.us.oracle.com> Content-Language: en-US X-Originating-IP: [10.43.162.191] X-ClientProxiedBy: EX13D11UWC004.ant.amazon.com (10.43.162.101) 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 T24gMDIvMDEvMjAxOCAwMzoxOSBQTSwgS29ucmFkIFJ6ZXN6dXRlayBXaWxrIHdyb3RlOgo+IC5z bmlwLi4KPj4+ICsvKiBJcyBTUEVDX0NUUkwgaW50ZXJjZXB0ZWQgZm9yIHRoZSBjdXJyZW50bHkg cnVubmluZyB2Q1BVPyAqLwo+Pj4gK3N0YXRpYyBib29sIHNwZWNfY3RybF9pbnRlcmNlcHRlZChz dHJ1Y3Qga3ZtX3ZjcHUgKnZjcHUpCj4+PiArewo+Pj4gKwl1bnNpZ25lZCBsb25nICptc3JfYml0 bWFwOwo+Pj4gKwlpbnQgZiA9IHNpemVvZih1bnNpZ25lZCBsb25nKTsKPj4+ICsKPj4+ICsJaWYg KCFjcHVfaGFzX3ZteF9tc3JfYml0bWFwKCkpCj4+PiArCQlyZXR1cm4gdHJ1ZTsKPj4+ICsKPj4+ ICsJbXNyX2JpdG1hcCA9IGlzX2d1ZXN0X21vZGUodmNwdSkgPwo+Pj4gKwkJCXRvX3ZteCh2Y3B1 KS0+bmVzdGVkLnZtY3MwMi5tc3JfYml0bWFwIDoKPj4+ICsJCQl0b192bXgodmNwdSktPnZtY3Mw MS5t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