Received: by 10.213.65.68 with SMTP id h4csp2146857imn; Sun, 8 Apr 2018 20:55:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Ngi0SRama9HCvnji719ALs/R4CCTwIJxo7r5Z1CK7NnRqLUspNyEsBusAmgy5k0tOAaNr X-Received: by 2002:a17:902:6909:: with SMTP id j9-v6mr37285337plk.92.1523246157174; Sun, 08 Apr 2018 20:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523246157; cv=none; d=google.com; s=arc-20160816; b=tm9x0WPmyCLDD9/W21ZSTc9I85vEQRbNuVoV82cnEwDixHCTkJn3fSQp2S6Bq5L+hr MLN1xry3ItP7ILv4nDjORxg+aXnQKmurWrzT0m4KQl3GFkhZ4OSKLMZZKqv9dLNspIUB jh9YOMKQ5UZd64w4KGKYjNHEKDvh+QYzuDWqWamUOzHz1UUoK3JopB23Ld1UoXn0456l JilCY/PEXUbkIwSHYznxAOYo8BJ/FWbsGulXH2hDPBR0AYNSFMiVV9BEB6CJ0vu/rcag ndhr0PgV4iVZrUhP38RUVLKRpW2sJRyjfnR3a10TOWVs8IRfkNZqFcEjLU9tHz6oFM+u nUJg== 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=YmbZsZJ8HnJ/EX7311BRkQsr93MbIM6k4n+qmp7zjyE=; b=ylj8E+72LDjTR8bIUa6T5jk7UeUhyV85VVANuXZI4DfVsc7l6CBIagsWX0FIYcQxgO 7kMdYlzpyQqSGOAr36rFaahYd67HZzmRkqwO4x1L2HyEL4occ12o8OAvcj/gctzT7XjF A5OqoQTSuRvUvsK3pIAkc6RZd59JKIp1wUZPyC/gwGQ2TMocle3SG8wWpzUnpxyiXQ8i BFBGefx5NddFQGRFhGLKQ7kswqGue6aAs+IS3C3LwWh52t1+gkV04/vkTyYu2l3SFR4U Cp5oJiO+3YDPyCnBGdyeAZthwJLZRHxnwaBWHKoUqpTERRlSUs9hryVlIwFeQRXi7tyZ RMCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=SOi2Rx2i; 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 x12-v6si3932880pll.207.2018.04.08.20.55.19; Sun, 08 Apr 2018 20:55:57 -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=SOi2Rx2i; 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 S1754697AbeDIDte (ORCPT + 99 others); Sun, 8 Apr 2018 23:49:34 -0400 Received: from mail-sn1nam02on0102.outbound.protection.outlook.com ([104.47.36.102]:30848 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754066AbeDIATb (ORCPT ); Sun, 8 Apr 2018 20:19:31 -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=YmbZsZJ8HnJ/EX7311BRkQsr93MbIM6k4n+qmp7zjyE=; b=SOi2Rx2ijrA7Rd5sY6Sl/AoRBUWzNPJC+6X6GV51PlMIG3gFwZdR3cD2VeyI0yjfe2boE/9OmW96M2AdPFNfQEzLsqyoLhP0XnsLiXeOc2PDsPoVNhPDrQzYWe7bzsFKVm+Hr79A1rt/xoz2ylyisOiPYngCNGt3g5htk/4ck9w= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0726.namprd21.prod.outlook.com (10.167.108.39) 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:19:27 +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:19:27 +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.15 114/189] x86/kvm/vmx: do not use vm-exit instruction length for fast MMIO when running nested Thread-Topic: [PATCH AUTOSEL for 4.15 114/189] x86/kvm/vmx: do not use vm-exit instruction length for fast MMIO when running nested Thread-Index: AQHTz5hBO6fZwvVIm0eycL1LuUfBrw== Date: Mon, 9 Apr 2018 00:18:16 +0000 Message-ID: <20180409001637.162453-114-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-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;DM5PR2101MB0726;7:88wLMBaRoUICOI0EoRVGVHDP+TyXZqBUEhLb5vcMzHXeF9uvkpFjdWjkcMgHFeYWOEq/7cmqaG/q/jAni3MmiQ7nOtg+6TMzYSfryU03UEczTzz+RsYwO0uILIII/YH99/4JEp9+nAJWnaqWwHeu2Bq6c31ai0cLe6uX47dJ54XppG2OjSoRg1B4lGh0bIhWrTC9v+4O1F5+HrSV6tsdW5wS3eiXnu03IYBi2f7PNxR5EYxTvEFkhLXWT/bOYLyH;20:IoK95U+ZpwN81XGOJfrRvO0cgrPiPQFZyELm7dEAczyF99zG0xWuy4KyBVdWmFnOlS5jnICzwAYpUtVOT+HPod+0V9ki4GuxxUVclUgc3LQTeg4UgZDcpH4c/3GvVRe9LYKFPElbcAepuKy7qvEmZC4wfvCT2JJr4AA2jLmeygE= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 17099649-fe4d-463d-8243-08d59daf8e1a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0726; x-ms-traffictypediagnostic: DM5PR2101MB0726: 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)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB0726;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0726; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(346002)(39380400002)(39860400002)(396003)(376002)(199004)(189003)(6486002)(26005)(6512007)(4326008)(81166006)(6666003)(6436002)(81156014)(8676002)(97736004)(186003)(36756003)(72206003)(53936002)(107886003)(2906002)(86362001)(575784001)(76176011)(110136005)(305945005)(10090500001)(486006)(3660700001)(102836004)(5660300001)(14454004)(476003)(86612001)(446003)(99286004)(68736007)(66066001)(11346002)(54906003)(2616005)(1076002)(7736002)(5250100002)(25786009)(8936002)(478600001)(2900100001)(2501003)(3280700002)(105586002)(316002)(106356001)(22452003)(6506007)(3846002)(10290500003)(6116002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0726;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: UqCPBBGv6+rxQqN0M/7UVfvPH9E06BSkmH3bwzzq59Y03v3Jter5nTn4Cmi1N19IW1ALFgu6d4qqeOQwqKSI31zdquaRIonh9O/eHXmtAbl9WfC3l7zw84Ezl+MitP2DJyGWc1viC+sndZUXbNw9CLx422ipXWN0mXjtPJIW4tKl16d9TMBlyCukNDH2gU1NgP7/AhOIcs3sxCxvShbKS4+E30OFgGdiqTma9lS6E2h7YaY7127HkLAAxJOtLDNsNYwwDSoM3df1XPVdjG7vTk9RKLof7GCXIymbybpzaBvhZ6b9oMK26ecN9u1WVr7KAiy6/Vihf7bM2bJOsL5Kz/WhSdqsvnVENEjlmluRucPjQPR/Emnd83VUz+mlkvNM21IdK3+bVMPFoA1ankzWm0F6jVv+MfQQxewbtrweCEo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <53FDD043243DE143AAB47B9C4D6F0A4D@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17099649-fe4d-463d-8243-08d59daf8e1a X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:18:16.0839 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0726 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 YmUgc2V0LA0Kc29tZSBoeXBlcnZpc29yc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