Received: by 10.213.65.68 with SMTP id h4csp2121977imn; Sun, 8 Apr 2018 20:14:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+YJTy4dzARUygM0PaisgVprsvtmTgIIDu3Y1cxoI8YNkTgAOCTVpkEgsJX32kyHDkizmf2 X-Received: by 2002:a17:902:8f8f:: with SMTP id z15-v6mr2454769plo.174.1523243680453; Sun, 08 Apr 2018 20:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243680; cv=none; d=google.com; s=arc-20160816; b=UmuTqtHSsc0Dfvd8WqvQsknyBDSBAd6C5K73iskmxRvR5T7KcdPhdMis9HsJHFONsn y48/+XQnk3WFbIhV9m5c0VyEv/urB0OVb/3Zq+MvjfTHUgeplRvOn4RC1m8EV77irRvG cG3H/KXPnXqvMfxnld8QEq1hPP7Z7U6bCrbTrKoWeyxXypK4blXRkBH+Zw44KZi1msME DHG2232w7uUi4bk81eWR2DZWjz9xWI/NE5vcQ8Aw8B8lTmZbABoRtyBH+LARtde+T43O GmBvkskkjHP5GILZ1rDIV+AmFeDy06w9aa/16nq3jKNIYboeOkJmbroqhb96qi6Ns52r aVpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=XsT08T4kpCsUmh8zkywSaZdnoorwQoX5JUS+l7BZpl0=; b=Azv3U9pcIQKzHd54GCVWdCcueHCgQWUCBp563T0i/3XcTfi2XBV5tLVKsFikLM/LA5 Su7BefKOKk65Yjy6Bmx7lqwiD4tppKE3BuTKL+PkMLcyYIaRC6FpeGGL+36uO4AAQzCx SYt6KpW7unBVB2ID/F3lNT0iooaVmcN4hTI8wAN7l8uDQH5z2sNjwYktsU6xo4bW3+LK jvAY+1I6WqHIqNZMXf+AUYnf7QboAOkHGr0xLGJZboo/XUmKQtPeErbA8VKWjtBWRe4B /umFOS97fAeivKHW9zQUwzQI1XRlSDtnZiIUOrNHUKpWKkGWTnc0LJlMYnHV66YqQhPk aBqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=i/pwYQ1A; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a100-v6si16364032pli.20.2018.04.08.20.14.03; Sun, 08 Apr 2018 20:14:40 -0700 (PDT) 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=@microsoft.com header.s=selector1 header.b=i/pwYQ1A; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753522AbeDIDF7 (ORCPT + 99 others); Sun, 8 Apr 2018 23:05:59 -0400 Received: from mail-by2nam03on0117.outbound.protection.outlook.com ([104.47.42.117]:63840 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754108AbeDIAYj (ORCPT ); Sun, 8 Apr 2018 20:24:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XsT08T4kpCsUmh8zkywSaZdnoorwQoX5JUS+l7BZpl0=; b=i/pwYQ1A9N/aVQsW0GDC2el6OIuMxlY4xrEbDedPyrw4tVvIrUlUiZGfl6LiifXrLNZKHtdiGT4fFTWXsYMfELaQBON0q8n+ghnP7KMn4AN1rJnhAB1pYQfFaO5/six5h3Hq9kXHF4hjo3RrduzuF7HijaqlB8jmKAd81pKlyso= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0984.namprd21.prod.outlook.com (52.132.133.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:24:35 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:24:35 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Vitaly Kuznetsov , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 094/161] x86/kvm/vmx: do not use vm-exit instruction length for fast MMIO when running nested Thread-Topic: [PATCH AUTOSEL for 4.14 094/161] x86/kvm/vmx: do not use vm-exit instruction length for fast MMIO when running nested Thread-Index: AQHTz5imeUJmSRFSmkeTlGp1aemtwg== Date: Mon, 9 Apr 2018 00:21:05 +0000 Message-ID: <20180409001936.162706-94-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0984;7:vF3HlcOlDAgtckiqzmcX1ZUNGfks9qlLnbph0tlm7I7VtKYf+QZyDxYo2Tcp8t5y/amcD2BYakCmjysW/ZQFpzOIB6z8fgd96ZRFMZ80yVxvapyYh9Rtj4gz8RVAulEpjBI9OioXXRoCCZsKWe8Xq0qXiVy7GxVL7TU5Fz+aDkRmFMys4xoWvz7pYl1egUCc1ejT9l0vomHDM7/VT1z2dQ8ab0T8AjQLnCiP71mssKdfI1VBC7eyVSgFR8+jTaXa;20:brUMBKWF20Bum0D5KtYrO/aDA0FP+eY6qf3rUZq4JG7pUCu1rlCa611IiK9XHtT7NP6XFe5yeQ2NSZI/wGju9FsxbtGBSo7YMKF5DTOxaY3vO/jOr8bhbGK9B37rQic7DjNmSivy1xvGGsroBv64tGk7BEc7Dwk6nv3lY5HJEew= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 12ad9e5c-9ca6-4c1d-ed53-08d59db045c2 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0984; x-ms-traffictypediagnostic: DM5PR2101MB0984: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0984;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0984; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(346002)(376002)(366004)(39860400002)(396003)(189003)(199004)(5250100002)(2501003)(110136005)(54906003)(6116002)(6436002)(11346002)(1076002)(486006)(25786009)(105586002)(2900100001)(102836004)(86612001)(3846002)(68736007)(107886003)(316002)(10290500003)(5660300001)(86362001)(2616005)(305945005)(4326008)(446003)(6486002)(22452003)(7736002)(575784001)(476003)(8676002)(81156014)(81166006)(8936002)(6512007)(10090500001)(186003)(3280700002)(106356001)(76176011)(2906002)(99286004)(26005)(97736004)(14454004)(6666003)(478600001)(53936002)(6506007)(36756003)(72206003)(66066001)(3660700001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0984;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: fHT5hDg5QZaIidgMaObV6LlEbIuMiM4RiPYMCs3fi/AVYYOw+gypn5NL9feSExkTwzK5FnU+K5KJoFo5ddyATi6C9owNJKFLEIR83aPhjpaxuzGCQRZKRa2ms5XuOtj3QnQ8cZEMmHDDJHE0P+bCuilwHdY67cK0K0S8+4oNix8c70EhlyPW6vtH361M2bfsOJEmjef7Wr2VQSpHAnH5zgCbN0t89+lrWrgrNQn/GbGHYU+BnGIqkAzWziQFyulNUqCznIZpIJ5SvYy5iZP1iptA/gPayC1NnjdAf1+JoCu/nnh48h49Idd/zMbGb8KyAtO7KHrNcyHEaaJzquCPtf8NZQYgw6QenD9TT87eE4QkMj83rSHaQ+d0/JU3IfD5VNd2oIP66xF24/SizmV6eAEaRXpzd0h8sT+CvR76H8M= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12ad9e5c-9ca6-4c1d-ed53-08d59db045c2 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:21:05.2220 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0984 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogVml0YWx5IEt1em5ldHNvdiA8dmt1em5ldHNAcmVkaGF0LmNvbT4NCg0KWyBVcHN0cmVh bSBjb21taXQgZDM5MWYxMjA3MDY3MjY4MjYxYWRkMDQ4NWYwZjM0NTAzNTM5YzViMCBdDQoNCkkg d2FzIGludmVzdGlnYXRpbmcgYW4gaXNzdWUgd2l0aCBzZWFiaW9zID49IDEuMTAgd2hpY2ggc3Rv cHBlZCB3b3JraW5nDQpmb3IgbmVzdGVkIEtWTSBvbiBIeXBlci1WLiBUaGUgcHJvYmxlbSBhcHBl YXJzIHRvIGJlIGluDQpoYW5kbGVfZXB0X3Zpb2xhdGlvbigpIGZ1bmN0aW9uOiB3aGVuIHdlIGRv IGZhc3QgbW1pbyB3ZSBuZWVkIHRvIHNraXANCnRoZSBpbnN0cnVjdGlvbiBzbyB3ZSBkbyBrdm1f c2tpcF9lbXVsYXRlZF9pbnN0cnVjdGlvbigpLiBUaGlzLCBob3dldmVyLA0KZGVwZW5kcyBvbiBW TV9FWElUX0lOU1RSVUNUSU9OX0xFTiBmaWVsZCBiZWluZyBzZXQgY29ycmVjdGx5IGluIFZNQ1Mu DQpIb3dldmVyLCB0aGlzIGlzIG5vdCB0aGUgY2FzZS4NCg0KSW50ZWwncyBtYW51YWwgZG9lc24n dCBtYW5kYXRlIFZNX0VYSVRfSU5TVFJVQ1RJT05fTEVOIHRvIGJlIHNldCB3aGVuDQpFUFQgTUlT Q09ORklHIG9jY3Vycy4gV2hpbGUgb24gcmVhbCBoYXJkd2FyZSBpdCB3YXMgb2JzZXJ2ZWQgdG8g YmUgc2V0LA0Kc29tZSBoeXBlcnZpc29ycyBmb2xsb3cgdGhlIHNwZWMgYW5kIGRvbid0IH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