Received: by 10.223.176.46 with SMTP id f43csp286894wra; Tue, 23 Jan 2018 21:06:14 -0800 (PST) X-Google-Smtp-Source: AH8x225unvG8RNk33yibjhpSrVu5ypsqvob7BL6exg+oIOEH/IUDywivFy2WW8YcplGcrqtK6Z7s X-Received: by 2002:a17:902:4181:: with SMTP id f1-v6mr7130297pld.59.1516770374767; Tue, 23 Jan 2018 21:06:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516770374; cv=none; d=google.com; s=arc-20160816; b=RmzW6hnqu1Nv4j/B/kOGYlCu7L6r+wgnaZm/KmBh1+l9fkA2/n4gfRSkThQ8UqfRA1 JPHfHcSR0a27mdcRvaAJh1sMuZwB+TJ/CePXSzq+j25cn17Yo2oVi1vy+2Isu9W+kbdW 4OERCSPm3qofN5QcNbUm2QXY9isxzbb1IkrAs9iXQMkJVHRen6x5XtT+NohAEXJikCzR YlFSCHuGXpTFpFf+u+ztjCQyWcXA7sAJz9dYjC7XzLSstvC65tJOa/lHa6b4scWKncJz oaQEgwygKjjbK58MLDHBYeb8bsX+32Wa5F6RFVSBaU3x+Ee5tnfoRbyfcWXBXJXIxAot CFcA== 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=SBLvlglkOlJ9SJoOCnjLRtMhQI9ETuORnosNe6KFSHA=; b=1CDi2hh0wmAAKMCs5Sk4EgK9HJw5/bgZ+jF6y8k3LeR2YTunxQhBLbiinn7Q3I6Vdo 9j8YCDdZUx3tjY3Wtgq+2OwCvu+Yji3jJ5r2RE5uyZAaALCJBLKBQrhntAvL9gnJaT7+ fpeH7EXNNIHwUHAJ6gIDT6X3JlEfXLo8ubrTY+1Dsh/R1FoZTORMW3DwchjNeumJuTnz BlhTTs7U8gfSBIIBqxHlMPyPUHgflsOIZ+usr3wqMYNHYTYsDsxW7lq297mqiYzBAvTc EKAT/Lt8mWE5byDcUODAMmeOYiNOOnQMvnkl66F+ukqM9j903jUINGjsR8SpT54XhBRT XMTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=hCwOc6U4; 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 q22-v6si5572337plr.35.2018.01.23.21.06.00; Tue, 23 Jan 2018 21:06:14 -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=hCwOc6U4; 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 S932190AbeAXFEY (ORCPT + 99 others); Wed, 24 Jan 2018 00:04:24 -0500 Received: from mail-cys01nam02on0130.outbound.protection.outlook.com ([104.47.37.130]:40075 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752487AbeAXEOd (ORCPT ); Tue, 23 Jan 2018 23:14:33 -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=SBLvlglkOlJ9SJoOCnjLRtMhQI9ETuORnosNe6KFSHA=; b=hCwOc6U476CGaMSKIfEjbNCG9UGpFbV5YDXjOu2m0FUj8E+Ax6/goxiwr5YLbXe0ulOwEeEG25R2g3uMQnzoXLr2OlUJSzfzm+6vLQohblyiP7LX2klZTthsd/MTiXri20w8AWpfMkxdl+i5dRLmoTeTACXk8kYb77NpfiLCgck= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0920.namprd21.prod.outlook.com (52.132.132.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.464.3; Wed, 24 Jan 2018 04:14:29 +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:29 +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 015/100] KVM: nVMX: Fix vmx_check_nested_events() return value in case an event was reinjected to L2 Thread-Topic: [PATCH AUTOSEL for 4.14 015/100] KVM: nVMX: Fix vmx_check_nested_events() return value in case an event was reinjected to L2 Thread-Index: AQHTlMnUbasIUEpmXk2GqhwSpZMj4g== Date: Wed, 24 Jan 2018 04:14:29 +0000 Message-ID: <20180124041414.32065-15-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;DM5PR2101MB0920;6:OT7hW/FXskGHrAb9Ot0u33tP5DI/0Xxe71HvqsdbSX69TPipcQqjQKMuSTSgQLd9o3NW+Z0BiFS6myWjlUWqMmwAHlsZ5I2wVvucu8GXKBde4+fn2mnGAeR78IDhfi9z8qY/S6J3Jud5QwP5tu7QoPlpT45BclxjL1owsZasblbPx8Lq6H2a9ykcc11rElLTAYAvQeEwSFojCp4uaurlAJy2eqiTtU8bjQJnXQcWAg1TOjVTAOAUrXllsarK3qc3okEn/CjISaroD+yxUaBc2/p8OajokXiwPSknTvKgnz7y8OCTRiwTbJkhHF/NJK/u7ngNbPy/8J/C+7fNPfuWqbTrBhUaHWmDlgM45Jc+rok3jJSAgoOMG8Q6qjVqrBD4;5:fOaSb7415bWnCP4dAd64cB5/OZs6AfFdC0jpTUXs7ROQ6ecpbu/VKtyDb7jeUupe9dn5o+zwQpZoev6irKy2tIp/F0TvncMQMpiOxUOYCXAP9eNtKjLP4rPGktpG9b+JKuDJO2b9YjDFx/QKoQMqY39rAngNjhfNh+/q2ma/dTw=;24:7EcFUls0GYjO8mozaNhm3d217X9T3IfnixA6gu4BgLPpnrjM7wrUECYU0UBWhGIfJs1Krvv9ETr22nzyKKEHMDBLWH5MKrlmXXka+EQk5ts=;7:Wd5p91Og8wxT/3c+Du1ACplgWIb32M70DmzuRK5h2x3Vj98+L8Gw8zIOzg6xkc+2mq+C16mKZYCIU+JV/k8T4EBm8B8sV9eanorRyk9M2DtMEoYqhZQvwhQYJJ7r5X1kNTGhxU7FlrQYh+hTGCZWbOxm49eF11sjARJ9kKaAPjlLpSJkX8Q0cvuEZb9XMjIhZpfVOMKahvTr+2PIxbT1RVPn2mv4aSPeomvjymQqZBtvLiTiJ3bJcQwwiecB6WR3 x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: 23c8e8c5-0205-4f22-7b24-08d562e0f6e9 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:DM5PR2101MB0920; x-ms-traffictypediagnostic: DM5PR2101MB0920: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(146099531331640); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(8121501046)(5005006)(3231046)(2400081)(944501161)(93006095)(93001095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0920;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0920; x-forefront-prvs: 056297E276 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(366004)(376002)(396003)(39380400002)(346002)(189003)(199004)(105586002)(106356001)(86362001)(2900100001)(66066001)(305945005)(14454004)(22452003)(72206003)(3280700002)(3660700001)(10290500003)(5660300001)(36756003)(2950100002)(575784001)(7736002)(478600001)(110136005)(316002)(97736004)(81166006)(6116002)(3846002)(26005)(1076002)(6346003)(54906003)(25786009)(81156014)(6436002)(10090500001)(68736007)(107886003)(99286004)(8676002)(8936002)(4326008)(5250100002)(2501003)(86612001)(6486002)(59450400001)(2906002)(6506007)(76176011)(6512007)(102836004)(53936002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0920;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: tdUIfmzbvPduqWKlnZ5Lje5InFkuqCeqHWOeeejcLjdvcisJDeDzYn7Wu5UTnpS2JtgQ7w9xblvBwWUfWnTj5w== 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: 23c8e8c5-0205-4f22-7b24-08d562e0f6e9 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:29.6005 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0920 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogTGlyYW4gQWxvbiA8bGlyYW4uYWxvbkBvcmFjbGUuY29tPg0KDQpbIFVwc3RyZWFtIGNv bW1pdCA5MTdkYzYwNjhiYzEyYTJkYWZmZmNmMGU5ZDQwNWRkYjFiODc4MGNiIF0NCg0Kdm14X2No ZWNrX25lc3RlZF9ldmVudHMoKSBzaG91bGQgcmV0dXJuIC1FQlVTWSBvbmx5IGluIGNhc2UgdGhl cmUgaXMgYQ0KcGVuZGluZyBMMSBldmVudCB3aGljaCByZXF1aXJlcyBhIFZNRXhpdCBmcm9tIEwy IHRvIEwxIGJ1dCBzdWNoIGENClZNRXhpdCBpcyBjdXJyZW50bHkgYmxvY2tlZC4gU3VjaCBWTUV4 aXRzIGFyZSBibG9ja2VkIGVpdGhlcg0KYmVjYXVzZSBuZXN0ZWRfcnVuX3BlbmRpbmc9MSBvciBh biBldmVudCB3YXMgcmVpbmplY3RlZCB0byBMMi4NCnZteF9jaGVja19uZXN0ZWRfZXZlbnRzKCkg c2hvdWxkIHJldHVybiAwIGluIGNhc2UgdGhlcmUgYXJlIG5vDQpwZW5kaW5nIEwxIGV2ZW50cyB3 aGljaCByZXF1aXJlcyBhIFZNRXhpdCBmcm9tIEwyIHRvIEwxIG9yIGlmDQphIFZNRXhpdCBmcm9t IEwyIHRvIEwxIHdhcyBkb25lIGludGVybm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