Received: by 10.223.176.46 with SMTP id f43csp286927wra; Tue, 23 Jan 2018 21:06:16 -0800 (PST) X-Google-Smtp-Source: AH8x225G2AsFtdg7QIjd4hvjsFkVIghi77sgdsRxBKJIYyfCxAxJljCma8Vr9UFklmhctpLjRk2Z X-Received: by 10.101.67.65 with SMTP id k1mr10092516pgq.159.1516770376306; Tue, 23 Jan 2018 21:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516770376; cv=none; d=google.com; s=arc-20160816; b=yGQ48dyk1s/Shrn7osoMoHl1CPsPf909FeKw63lgCwxbYsKt5jSBsDP6XMC8d2nIQu g9q8BWwzW6TAlYmMNlYzpf2FduAtudh0krpwDeInTv8M/PvBRDtQtn15IVhvcjOgmMXq basvQx0MAQ0pBEpkWdMAm6z11BZW650Hum5DcvPg+EvcQ8D7GnJ2cTzra5MtzcICxxEL tvE3mXbZYYZdflPq+rchUTcpJTemz65tXrv7h8DedAPkxTPyUMTG8PHD7BFEBmjGyOiv JvOOKLH+luHHWg6geqHjF9sGHkOxeMT3OsT+T3K08uqVvaTLUobfUC4rEZBaUNxbYVs6 +K6g== 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=boh8rUq7JC1L7qXyYTgl/PQiAtZEYrRvBcqH4R8cvgI=; b=OLKWOW2SEqp/XXKPLHKTx4SiC0iELNS+knFpyH2tY+CGRz/lry3Ux5lPrWOBrMzZoW 4UlfzecHJr3cKXpBYClzSrIPEqycoLnYXEVVvyAHXqSthxX6ZuqBomri3j/JlQsJzDvW aKY5vBV/CM5V5c8eNPjDc/8Kq15hnD5i9u08nGFWqRqyIg53six9xg9/VI/7l91/jimy yDqAVfTcrlyzTs6tMHe2py8JTMpWi7mEqCUBNEu2H72X1lhiMvnBogAyWinbVwxA5mnL D4en9tzqFcBwu+IWmi7DC6bWxjbDwTnXLuHVZo/TEjIn753oVi/K6YaTCVvg4AaFwcA/ 9CHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=io7L2F7J; 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 j22-v6si565096pli.788.2018.01.23.21.06.02; Tue, 23 Jan 2018 21:06:16 -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=io7L2F7J; 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 S1751340AbeAXFFk (ORCPT + 99 others); Wed, 24 Jan 2018 00:05:40 -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 S1752590AbeAXEO3 (ORCPT ); Tue, 23 Jan 2018 23:14:29 -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=boh8rUq7JC1L7qXyYTgl/PQiAtZEYrRvBcqH4R8cvgI=; b=io7L2F7JgE0Cp4saNLS/IkYn5+BjVVVqghVjrdbB7I2j9fmCjkprAHdhN/gUqWoY3yyekdkTg6GS2i3HVnamYAkF/GDgYcTArT4vrREnIkerJWZE7rFVoOvP6wa871dU6RJozu7dt6Ks7igPyEu7CXIfxJxVqaU1mGkVciVENqY= 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:27 +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:27 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Nikita Leshenko , Konrad Rzeszutek Wilk , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 012/100] KVM: x86: ioapic: Fix level-triggered EOI and IOAPIC reconfigure race Thread-Topic: [PATCH AUTOSEL for 4.14 012/100] KVM: x86: ioapic: Fix level-triggered EOI and IOAPIC reconfigure race Thread-Index: AQHTlMnT3WD9ntZ2vEGt8FfBA0lymg== Date: Wed, 24 Jan 2018 04:14:27 +0000 Message-ID: <20180124041414.32065-12-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;7:Lp/2WpLxTrOvf4vgXkAZi8qtKlsfZ5liBhVlKmz76FQnqq6KFDJILQu6XHGsreWWjwBt26U3WOv9UaD9jCYY1vz5B3QDh4F0cEmbCTisSXvNLGz++/lWnRedQuxICKJ7nvyiEOEgoJmTh5OI0hTYQ8DIj8bEfb0Vkv0a+DrM2fRdK6yynnO9xfQQWFKaWLrywLtu1fz/ySBjzJtDLMbp5/YvyytBJkVYeycj+/c82nmAlEiHqYg89EONgKXBdnnh x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: 4b9f39c6-1a6d-4e7b-2175-08d562e0f5d1 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: fzVvcBjGgWt0dF0eP7Q8rOBcSwGh9+4dt/WgD2lfhfyDBxMqyGyBMAGDd9x6baK2K34hHSawa5ALqXjVgaxjlA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <450DA078853399409AB2E578BC501F1E@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b9f39c6-1a6d-4e7b-2175-08d562e0f5d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:27.7772 (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 RnJvbTogTmlraXRhIExlc2hlbmtvIDxuaWtpdGEubGVzaGNoZW5rb0BvcmFjbGUuY29tPg0KDQpb IFVwc3RyZWFtIGNvbW1pdCAwZmM1YTM2ZGQ2YjM0NWViMGQyNTFhNjVjMjM2ZTUzYmVhZDNlZWY3 IF0NCg0KS1ZNIHVzZXMgaW9hcGljX2hhbmRsZWRfdmVjdG9ycyB0byB0cmFjayB2ZWN0b3JzIHRo YXQgbmVlZCB0byBub3RpZnkgdGhlDQpJT0FQSUMgb24gRU9JLiBUaGUgcHJvYmxlbSBp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