Received: by 10.223.176.5 with SMTP id f5csp3038129wra; Thu, 1 Feb 2018 09:47:30 -0800 (PST) X-Google-Smtp-Source: AH8x226CNOM8NNwJZvWhrQdgTRC1h4e8BWslaf58IJGlpsR2qC8wOHfzAs1aDUUBaCbSPsWkXlTh X-Received: by 2002:a17:902:183:: with SMTP id b3-v6mr4464561plb.383.1517507250332; Thu, 01 Feb 2018 09:47:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517507250; cv=none; d=google.com; s=arc-20160816; b=MvEgKD96r273z2pjThT2ASxwkeSd8vnlaYvBRkr/uYy+xx/c+QSHCwVPpnczTLt3u/ NbYhAZHtHekxrpEcZUhFUnJVbQ83+0zKd22IBrMDkGillncbiXKkGMRBuIcjcXotzQyD 9nyjmPaGAZNX7+7KTZXHa1Gursv32h4MbdiM/eDg6HfrL/OlmstGywNfWnNlrrwFNjG2 h7SwHRUhldzF24nhmcW2dZwW7gZN9EV6vONQpFGgxiTichykvdJwELVsKtFg7KtqSSdq k4RXASLOJNKdbkDX9gp+w/19FnSstKuU0stCJ0lsqLPEE1Cyjtn9xnKrTOdBviQ3kheX c++g== 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:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=ivWj4IL/FrirIcRVjya9Gds8oYTWPo8fUQKjKPKbeB4=; b=nk9vetUP+KEuMZCgwlQcOy/E3eOw433PAbLenfxoJoA+d3gq9AmOTAA8cxS6gFoWoV YLq/DLTksN5abdkUpkCtoQzP8vzeNUy1HWvgrfcsdd3SbQqSd8M1rvLOVpFaW5UQc+4y qUD+ILjAEX7DeyCk8q74sJ+nA7ABfNC4QQWaHKiXtTY1yehFpcI3bnq3frYDtfiQ/Ztg ay0shJjCEfrFOoNIZDckTVrKN4aMJmZ80ob5PCPvl7zlPGrh1qMAZ0KEitItTPsGA/X9 INLPitFJtiy2RiOMfu0iqT5qCqKWlJees6astX/cAXipVP3rvbVsxVA4+YDPM2A9rHGu 4E2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=AH5GEkdp; 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 o68si40214pfk.327.2018.02.01.09.47.15; Thu, 01 Feb 2018 09:47:30 -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=AH5GEkdp; 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 S1752734AbeBARqh (ORCPT + 99 others); Thu, 1 Feb 2018 12:46:37 -0500 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:44941 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752607AbeBARqf (ORCPT ); Thu, 1 Feb 2018 12:46:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1517507195; x=1549043195; h=subject:from:to:cc:references:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=ivWj4IL/FrirIcRVjya9Gds8oYTWPo8fUQKjKPKbeB4=; b=AH5GEkdp23W1YdWmxVMIjq1azHURtwCqMFrhdNN0g6cp0jxwhSCmvePd gG33NsFrGCA6NsylYNR7SUiJR5gEqAj6btUQyO8j9gtVlY/qZ5rKDeMM+ 8U6FlBS9DdGiDi4ppcAj4fvf8CAFBIDYZhUopPf9d2YnaJzlrIC5XzleV w=; X-IronPort-AV: E=Sophos;i="5.46,444,1511827200"; d="scan'208";a="592135676" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-2a-1c1b5cdd.us-west-2.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 17:46:28 +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 w11HkNTZ039848 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 1 Feb 2018 17:46:27 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:46:27 +0000 Received: from [10.88.64.63] (10.43.161.129) by EX13D01EUB003.ant.amazon.com (10.43.166.248) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Thu, 1 Feb 2018 17:46:17 +0000 Subject: Re: [PATCH v5 4/5] KVM: VMX: Allow direct access to MSR_IA32_SPEC_CTRL From: KarimAllah Ahmed 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> Message-ID: Date: Thu, 1 Feb 2018 18:46:12 +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: Content-Language: en-US X-Originating-IP: [10.43.161.129] X-ClientProxiedBy: EX13D05UWB004.ant.amazon.com (10.43.161.208) 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 CgpPbiAwMi8wMS8yMDE4IDA2OjM3IFBNLCBLYXJpbUFsbGFoIEFobWVkIHdyb3RlOgo+IE9uIDAy LzAxLzIwMTggMDI6MjUgUE0sIERhdmlkIFdvb2Rob3VzZSB3cm90ZToKPj4KPj4KPj4gT24gV2Vk LCAyMDE4LTAxLTMxIGF0IDIzOjI2IC0wNTAwLCBLb25yYWQgUnplc3p1dGVrIFdpbGsgd3JvdGU6 Cj4+Pgo+Pj4+IGRpZmYgLS1naXQgYS9hcmNoL3g4Ni9rdm0vdm14LmMgYi9hcmNoL3g4Ni9rdm0v dm14LmMKPj4+PiBpbmRleCA2YTlmNGVjLi5iZmM4MGZmIDEwMDY0NAo+Pj4+IC0tLSBhL2FyY2gv eDg2L2t2bS92bXguYwo+Pj4+ICsrKyBiL2FyY2gveDg2L2t2bS92bXguYwo+Pj4+IEBAIC01OTQs NiArNTk0LDE0IEBAIHN0cnVjdCB2Y3B1X3ZteCB7Cj4+Pj4gwqDCoCAjZW5kaWYKPj4+PiDCoMKg wqDCoMKgwqDCoMKgdTY0wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIGFyY2hf Y2FwYW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