Received: by 10.223.176.46 with SMTP id f43csp286058wra; Tue, 23 Jan 2018 21:05:09 -0800 (PST) X-Google-Smtp-Source: AH8x2252HIWFxFdeyf42K79A6yVchTY+Yd/nuz3XywxiayKAghJXMqsMqgY/s/aoOv6o448EDh4n X-Received: by 2002:a17:902:8608:: with SMTP id f8-v6mr7228189plo.366.1516770309428; Tue, 23 Jan 2018 21:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516770309; cv=none; d=google.com; s=arc-20160816; b=z9XhgEpiXlXJKqVNsXczJYa5hDoiks8zpIPtG1qCVw0E5NTnIqRFjD0vBttCj7GWGn 3ZIB0vcM5ttMdmgDS51A2FSK09rPGviP2tkP7NuEzNt8v3hOnB4P95HTzv+VQY2d+MZb 77QcO7p6sBOZIPtpYD+Cj32P4tIoWpAl/okeWrNv+9crCjBud8Hruy9hi/Yvn+9YaFSH PLXi3jt0t6DqG1yLEL1OJcBTndYQFRzbsZbwblJ+8mc+750aA3LSyA15S4TZ0JsXlTQg nC/ThGsLKI1Nt+fUT+KBLnUyNWTaCs6ApvE3iN6SJ2/CdUqwLBNsP8iJAQ7XebMGP2qH 1Npw== 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=Hy4CdlHmU7H+8/bFvCMBDh/3PawqgrE9RgHIMjaN4MU=; b=D319wNgRO3LwEN7ARNwAI1AhSnddT0PYy5Cl2xVd7zehIywu6klvxzTwD16iNyzI1e Ri0yNhame6LqbiFK5xlEStWYzvse45oDFCatIyuVuTZCZoL7obR5E4cuYjkBQlj5aB9w Ro0n31y4w+ncvp9cwk5dL4Zxw3a6NCVgw7ad0jMCsvlfihNzGEQcW1wRirl1xbDwA+m3 M8t3L4oviJLYraSHtKTqC+iZdj5t/3bYzCHkXdtG+KOLkBpV12uo+CX4n50Xsvst5kCo xlYXARdBbQE/D8yYXwYx3iuvKZwIe7/cIJr8U/ghVP8/jFJ/JMzlO2TzgMv7YT4A7LWM iDWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Soe9AOKG; 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 s3si15371297pgq.369.2018.01.23.21.04.55; Tue, 23 Jan 2018 21:05:09 -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=Soe9AOKG; 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 S1752640AbeAXEOc (ORCPT + 99 others); Tue, 23 Jan 2018 23:14:32 -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 S1752487AbeAXEO0 (ORCPT ); Tue, 23 Jan 2018 23:14:26 -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=Hy4CdlHmU7H+8/bFvCMBDh/3PawqgrE9RgHIMjaN4MU=; b=Soe9AOKGZph8XE+RcrK6gVhBS85rPHugKnrugHF2sDd2LosVjgtS1DkgH+3EdKP9rLyiOvtUVV8zKgBJ/fRwz1/bzMhbIu5DnAr+DHuFcdZ756IF9E2L1zO48MelsK33Qzf3lVrpjvsxi3gbxyo8FKtw29JaikLxFI3MNQQ4gto= 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:24 +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:24 +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 006/100] KVM: nVMX/nSVM: Don't intercept #UD when running L2 Thread-Topic: [PATCH AUTOSEL for 4.14 006/100] KVM: nVMX/nSVM: Don't intercept #UD when running L2 Thread-Index: AQHTlMnRRUKcZERGOkegB9ILnlwSgQ== Date: Wed, 24 Jan 2018 04:14:24 +0000 Message-ID: <20180124041414.32065-6-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:PofkgxFdpWBPrx1YnHB76h6lfphDQTs9BPprLl2tnuIaIlkjFk5dIP0MH7JX5FHVWymAtHxFqn5Ggm2TgouKVEBHjyhxQCXvvYNoZdTOMwA5rZMwDNVAuFhWpA0pjNOBe6hPIkKWmJTDZ98Yl4Uq21b7sF5Jjt1sB65TlNIMN0uuHebgtmoCumqfALSJUgNutxeo50zENzH9kqboPHN0VVaGC3oCcQlJn38AQ6LoP59G7eqYooVLPV2pH9AX/fn4 x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: 6dcef981-fe22-4827-7a6b-08d562e0f3ae 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)(575784001)(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: I7YKZiKl2q9cT8CpQbdzrzD8Or6F1WS5qnoloKRpghzJ/fJFv9mberpsi5raL1FKgx19kxC92mKl2jyZeUjpEg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <4A5A0B1295FAA64B8A7837AF881D98AF@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6dcef981-fe22-4827-7a6b-08d562e0f3ae X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:24.1416 (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 bW1pdCBhYzliMzA1Y2FhMGRmNmY1Yjc1ZDI5NGU0Yjg2YzEwMjc2NDg5OTFlIF0NCg0KV2hlbiBy dW5uaW5nIEwyLCAjVUQgc2hvdWxkIGJlIGludGVyY2VwdGVkIGJ5IEwxIG9yIGp1c3QgZm9yd2Fy ZGVkDQpkaXJlY3RseSB0byBMMi4gSXQgc2hvdWxkIG5vdCByZWF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