Received: by 10.223.176.46 with SMTP id f43csp287383wra; Tue, 23 Jan 2018 21:06:50 -0800 (PST) X-Google-Smtp-Source: AH8x226gNkInUwXv3gzjsppmmfPf3h5rqE3VarzeXm7+IGXB+Lcml5Fjz0dUsWR9exenO0lne/YX X-Received: by 10.98.26.143 with SMTP id a137mr12138548pfa.100.1516770410719; Tue, 23 Jan 2018 21:06:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516770410; cv=none; d=google.com; s=arc-20160816; b=UF9krXtUHSjRfEm85wBC8P3wLkenqIaJwoiIJOO23aZTSTqaYz7hZrSESqbYKbdTaI PdwCSkCIbxUVgEbzqHy3mEVMbn3j6uo1MwplHOP16teCnW38Zd3v8kTYAgpF9FqA7wDD knwPxR3G2Y0LGsNmMcJ8wleOXGmpJVmHtyUt/zIvj3T2+avsXD36qBxayUXieMG52M+X tR5wDNasa2rIt8h4Uz13F7LExuLFerfb9zl8tBj+xJVZGv0HsXLtrhruHnVmgrGzPk48 bXfZMxzL5ziSseTflAHtlI1vnsI8+d3WognOYgEn9Fbv7CgA6MAlwjUF35HzDDDv6E9h rR7w== 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=pB50yUcZiX2Jr2d/olT/x5maggbXg9y3gU2MlyBxW90=; b=lKHbT251EJ6ASmI6iYlfP37MEQQ9kWl8Nj/prGgEHipTVtTA3a92GvtDa/RkC2v0Mn fX+7AqBmjgSSFZiVgYsbCO8ySI3uZ/qByr+238E4cZYuoxdMz+le5BlOaoyPzJfP1tcl HFG913G5qYgJoaCK4nhQTenO4Wk+lY86wh+ql6hiYOf9OXTgeMgBXPEG8a/SGjIS+5Yc 2uGO7REKm+vexoLdQTh6vNt9YmBbFsbk6uqVseVDstEu+bALL2dgasiKnA28Tpolt7Iw VvHkh5456Fb/Ll78mTu9y2F9ohBgWAKeBygJI5oJXqGwOgkUKNygYf63KXnYXDun4oTL G3jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=J1XzNMyv; 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 k1-v6si5585366plt.459.2018.01.23.21.06.37; Tue, 23 Jan 2018 21:06:50 -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=@microsoft.com header.s=selector1 header.b=J1XzNMyv; 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 S1752708AbeAXFGD (ORCPT + 99 others); Wed, 24 Jan 2018 00:06:03 -0500 Received: from mail-cys01nam02on0131.outbound.protection.outlook.com ([104.47.37.131]:61072 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752172AbeAXEO2 (ORCPT ); Tue, 23 Jan 2018 23:14:28 -0500 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=pB50yUcZiX2Jr2d/olT/x5maggbXg9y3gU2MlyBxW90=; b=J1XzNMyvdr+vnHRmxdQIsxfdmBcHLPs2gnGfVzpfLC3XmvJGNsIx0m/Hlu4JASAijXxd6EXC9D0wEYO1pMgzgL7Q1f2KGjJxG/bXeYLHBw9FD0M8fcDX6BAEZbUQE4Rn3vJzjYVMDk2pUPc6w4D96jw5oU90OfTUlys1J4Odj6A= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1080.namprd21.prod.outlook.com (52.132.130.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.464.1; Wed, 24 Jan 2018 04:14:25 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7%2]) with mapi id 15.20.0464.000; Wed, 24 Jan 2018 04:14:25 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Liran Alon , Konrad Rzeszutek Wilk , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 008/100] KVM: x86: Don't re-execute instruction when not passing CR2 value Thread-Topic: [PATCH AUTOSEL for 4.14 008/100] KVM: x86: Don't re-execute instruction when not passing CR2 value Thread-Index: AQHTlMnR88UK+BRMMk2GdjXYa8HbjQ== Date: Wed, 24 Jan 2018 04:14:25 +0000 Message-ID: <20180124041414.32065-8-alexander.levin@microsoft.com> References: <20180124041414.32065-1-alexander.levin@microsoft.com> In-Reply-To: <20180124041414.32065-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;DM5PR2101MB1080;7:MRCoX0ZhPm+7zc4MJ171BDlDcH4TdWmR4OG/qN0JiX9VAnaA98Sd+t89L4TUqqZjlXsB1NTRWsADGjV63tJuRN//o8q4KuVGFTz8NiYebGk/njmNkRXuITxRXS25x7kb+HjQn4Oalzlu1rWQ7TlASbpGQzRuChFt1kU8R1hqPIA4g2T3EWWa/IJiovNUsxqPytrYKPR6VGUEQ/K3AkQk/wJ6tBI42gtdi0G0Kuxs9aoVWOIvfSqca5/Tqe83kqRs x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: 8d9bcf22-7c59-45f1-a68b-08d562e0f459 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7193020);SRVR:DM5PR2101MB1080; x-ms-traffictypediagnostic: DM5PR2101MB1080: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(130873036417446)(194151415913766)(146099531331640); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231046)(2400081)(944501161)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1080;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1080; x-forefront-prvs: 056297E276 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(396003)(346002)(39860400002)(39380400002)(366004)(189003)(199004)(72206003)(110136005)(316002)(5250100002)(6346003)(2900100001)(54906003)(1076002)(6116002)(3846002)(22452003)(36756003)(53936002)(99286004)(6512007)(68736007)(2501003)(3660700001)(14454004)(3280700002)(86362001)(102836004)(7736002)(5660300001)(305945005)(107886003)(6486002)(6506007)(2906002)(81156014)(26005)(25786009)(4326008)(81166006)(105586002)(8936002)(59450400001)(106356001)(478600001)(10290500003)(6436002)(8676002)(2950100002)(86612001)(97736004)(76176011)(10090500001)(66066001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1080;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: YROjhCJnGnuX2QegIoCFwIjLHFbqd07C79oTQ2aqNqEkLtsIKAp2RDOFBZvQzfAQCpY86zbwFr6HSUOeb7hXTA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <870D1CD3A0118141AE167D5AA702A62A@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d9bcf22-7c59-45f1-a68b-08d562e0f459 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:25.3184 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1080 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogTGlyYW4gQWxvbiA8bGlyYW4uYWxvbkBvcmFjbGUuY29tPg0KDQpbIFVwc3RyZWFtIGNv bW1pdCA5YjhhZTYzNzk4Y2I5N2U3ODVhNjY3ZmYyN2U0M2ZhNjIyMGNiNzM0IF0NCg0KSW4gY2Fz ZSBvZiBpbnN0cnVjdGlvbi1kZWNvZGUgZmFpbHVyZSBvciBlbXVsYXRpb24gZmFpbHVyZSwNCng4 Nl9lbXVsYXRlX2luc3RydWN0aW9uKCkgd2lsbCBjYWxsIHJlZXhlY3V0ZV9pbnN0cnVjdGlvb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