Received: by 10.223.176.5 with SMTP id f5csp3030737wra; Thu, 1 Feb 2018 09:40:18 -0800 (PST) X-Google-Smtp-Source: AH8x224IwkiHUp6PZI4peF6KiwhCxAy43bxTcoMcTc9ItBvlHtIIP4QIqAc0Sb9ej5YZKUurzHPT X-Received: by 2002:a17:902:930c:: with SMTP id bc12-v6mr32955828plb.328.1517506818001; Thu, 01 Feb 2018 09:40:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517506817; cv=none; d=google.com; s=arc-20160816; b=laesi4g65vD2F6qhEV+MGJCKidLI5tohmce6QE6kXcOeKFH/xObEEaWd7zC/cxT6V3 NNeWMV5jFBfSEId9ChKrcqSyTdDRZx6Ct5umqJtbZhC2rX/7YqP/VXimNdC4CE85bi7u tLVxysrYvM/SIwyi5Mxqm7mQfcxVA+Q/9AxXJA1kpGunuRkiYXoCj99W6OGYXY0qAiEk BHfFh8TSW9f++TYPCgMLZXCmhJYupo2eVZQs12Zwz/XKbkLEMsktBDo5fPgSiKM+wKzv g2sh7FVruX7VlNlNTIYeDJ4MUhso4D8ePC+7Ox9pOpkwp7QHpXFP5jR1CyPBcZhWFwH3 ZgKQ== 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=ZZQvFy7DiwrUlyIRqpJzeyBz2W6Nr1tW7eIAUBrve9Y=; b=OEoJS8+wf4A9CypDnX84hs/vQh121tyMzDyPvcPm7m/XZPE32ZBtwngX2Ti2iqxGxI /+FSGeZxRDjTkYuC42M67y7QRLcHNHqs3Tn2ZfWV5krAt1MbQjimc9/FMDDJzS6EbIzg QdjeH5jBRixrGQsbw4ciYWddDDNdYfAEHI75Ay+wtBSVLEDo4enLvHflpSpQ7uz7omJQ +Y/VKKO9+5wtGgup0FRAYeoT4ECDV7OhXyfdLWpb9PoHdi6KP7hgMxqT2Vk03KfLI6a8 EqoVdTbaQKMAMQ4pb+gC7d4Tah7bLpm7rncf3Cf9PLmgBhcZ9ZE6DW/q3Ge+Ho0WY1WR IraQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=G1pIHy18; 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 y15si54861pfe.341.2018.02.01.09.40.02; Thu, 01 Feb 2018 09:40:17 -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=G1pIHy18; 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 S1752655AbeBARjj (ORCPT + 99 others); Thu, 1 Feb 2018 12:39:39 -0500 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:22147 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751526AbeBARjg (ORCPT ); Thu, 1 Feb 2018 12:39:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1517506776; x=1549042776; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=ZZQvFy7DiwrUlyIRqpJzeyBz2W6Nr1tW7eIAUBrve9Y=; b=G1pIHy18aKEp1fbOoPRePafdC8ohaxOTXLCBWxTW7noexPtVs7JG7kK8 m75EXhufPBAkt6sno2oAIg32UQG0OedswdZ737Qosz6CLljPtXEtS4MAi x2wJE6XHy4qnIGLXvoGRghLXwqcjejDV0n3imAMc9Z+hKFA8t++mPBFnR 4=; X-IronPort-AV: E=Sophos;i="5.46,444,1511827200"; d="scan'208";a="717790689" Received: from sea3-co-svc-lb6-vlan2.sea.amazon.com (HELO email-inbound-relay-2a-1c1b5cdd.us-west-2.amazon.com) ([10.47.22.34]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Feb 2018 17:37:55 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2a-1c1b5cdd.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w11HbkkB093112 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 1 Feb 2018 17:37:49 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 17:37:49 +0000 Received: from [10.88.64.63] (10.43.161.67) by EX13D01EUB003.ant.amazon.com (10.43.166.248) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Thu, 1 Feb 2018 17:37:39 +0000 Subject: Re: [PATCH v5 4/5] KVM: VMX: Allow direct access to MSR_IA32_SPEC_CTRL To: David Woodhouse , 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" , 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> <1517491537.18619.307.camel@infradead.org> From: KarimAllah Ahmed Message-ID: Date: Thu, 1 Feb 2018 18:37:34 +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: <1517491537.18619.307.camel@infradead.org> Content-Language: en-US X-Originating-IP: [10.43.161.67] X-ClientProxiedBy: EX13D11UWB002.ant.amazon.com (10.43.161.20) 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 T24gMDIvMDEvMjAxOCAwMjoyNSBQTSwgRGF2aWQgV29vZGhvdXNlIHdyb3RlOgo+IAo+IAo+IE9u IFdlZCwgMjAxOC0wMS0zMSBhdCAyMzoyNiAtMDUwMCwgS29ucmFkIFJ6ZXN6dXRlayBXaWxrIHdy b3RlOgo+Pgo+Pj4gZGlmZiAtLWdpdCBhL2FyY2gveDg2L2t2bS92bXguYyBiL2FyY2gveDg2L2t2 bS92bXguYwo+Pj4gaW5kZXggNmE5ZjRlYy4uYmZjODBmZiAxMDA2NDQKPj4+IC0tLSBhL2FyY2gv eDg2L2t2bS92bXguYwo+Pj4gKysrIGIvYXJjaC94ODYva3ZtL3ZteC5jCj4+PiBAQCAtNTk0LDYg KzU5NCwxNCBAQCBzdHJ1Y3QgdmNwdV92bXggewo+Pj4gIMKgICNlbmRpZgo+Pj4gICAgCj4+PiAg wqDCoMKgwqDCoMKgwqB1NjTCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgYXJj aF9jYXBhYmlsaXRpZXM7Cj4+PiArwqDCoMKgwqDCoHU2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