Received: by 10.223.176.46 with SMTP id f43csp286477wra; Tue, 23 Jan 2018 21:05:43 -0800 (PST) X-Google-Smtp-Source: AH8x2250YVU9aOw72gVKfIZkGROA7RtPE0cSuNuDo4UDLeTaTdX9cx7Bt0KXwUUdhenaL27DZFlo X-Received: by 2002:a17:902:6e01:: with SMTP id u1-v6mr7152349plk.12.1516770343139; Tue, 23 Jan 2018 21:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516770343; cv=none; d=google.com; s=arc-20160816; b=KODs8foKqbzAEcMEYPBgECmue+sSJBNloeBKEv30ubCb2khceb3+9yJCDvwjtTOZwG WAhJ/T+HHhJPOOID0j6s2JZD1eZVvvsTBCtX9jID95Qh+VPohOE0SCrbIwrvuBEpFsPz 0ThHQUKNJZmhL+oXiZyDGEd8E24UBrVKopKLnauuRlzIGZ9YAO/V0s+MXBBiRpWOV18e VVwFz+q849nxqTLrWfg8MLUEqJClx/AdLnmckMFpgJaNFplz4S8Tgg0rkkt+mDDt5mxE GmAP5pkM7ktoEWVuFS+qeRojxiIczH6NO0Gvim7w+M154DJF/PviBZkfl6ngtCcmw2Rc G6BA== 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=19GCDLm6e/6czopSfIIhXpt8PvaHK7WPpzaq8ciA6T4=; b=IEV2RHwAToiq3Vn9nT5Ak8PHTYwmEq2ncz75XpzOW29ClpnkEqvivCbDc1t/92xriG 4DYVB/QjRkYO6wZOPERrG4bSlIa8PwCx67/lUZhp8j1ZUgojqjKa8TuG1GbOUdGfEP85 hMY/xQqq/SU93DY6oB2JMmcQiUL5E8pxZeG10643SRuW+E2p8q+NwvPBAvgYcVEDvwyr 3GqJquJaF403QbXFRQ5TeZjcMHS9t25kVF64yWH453f0k8ibwGKQSg58zNPC4KtgT9Qv IpzMh1YO2U+lAvw36voBrMAhShjy5yIBFiLx+aLj7aQOzuHjviEoQxR07s3hZMYIMgPJ pwJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=E/2pUgDp; 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 y11si15458369pgv.424.2018.01.23.21.05.28; Tue, 23 Jan 2018 21:05:43 -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=E/2pUgDp; 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 S932238AbeAXFEw (ORCPT + 99 others); Wed, 24 Jan 2018 00:04:52 -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 S1752223AbeAXEOb (ORCPT ); Tue, 23 Jan 2018 23:14:31 -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=19GCDLm6e/6czopSfIIhXpt8PvaHK7WPpzaq8ciA6T4=; b=E/2pUgDpBv4Cnh7KJozOSw/e2BSdXIleVvhghOTfbyL5heRSvjV4vDMLLZB+JQ90Jci3ZqDefjLZyjU+r80wdER4ph02fkjEUt1U+7/rWAut5/PTcMxjUdrUNIwoDRIwvkZ9UwIhnM9nt6xamiFnPeBLDCbsxgvA4pJT9PjePb8= 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: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: David Hildenbrand , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 011/100] KVM: x86: fix em_fxstor() sleeping while in atomic Thread-Topic: [PATCH AUTOSEL for 4.14 011/100] KVM: x86: fix em_fxstor() sleeping while in atomic Thread-Index: AQHTlMnSNpE1eaFackWdsxf+69EFwA== Date: Wed, 24 Jan 2018 04:14:27 +0000 Message-ID: <20180124041414.32065-11-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;6:oOs6ptwKdSPa/OkAna98vQ2tQVaa5ezltmAv3al4lWqxCgaB10fer9cdwsZSx2t2UEYyGvvvEIl8/nNGLuIuZ3QSsfvV7LdxbxAfulPqERFzX2UcwU9JjeHoHrpNbG+iWYwlmURVpk4bZtuBNu3j10vxBDZUZplDVequwzb+OJ9nAr1QxuidMYj8zPX5WVG7RJgV2i7HOAoxXKPjhc9al+xEyPXuP+pNHxehL8ZTaI/L5fy8IWS1dG82KNVWz5yApGNL4Z5q4MrW1jRUpAty5EU0Wz6G9hR2+Q83e5leTr1g3XQro1TA6vvPAxnrn3ywZN6eBMh/lFfcXcRmOZOb8Tn31BGdFvLy6EBmzt7MF9+nvx70dZA3pyxCyZWf87us;5:K+gNoPjsMytX33Z1Trsi2j8AiGs0SszqABj3r1b//ptLuNFY9rPdZ7BMXp00+J3eSDWIObbYRhmgZydRuuaaB3sNvCtjVpPnZu4F6Tarr+mxL46dK9C+wbwgTrjmJ1ye8CBfzJBHJeTi+xEQSVnR4bRAsFgC2gjRMw343w7geH8=;24:iz4i8BTDG9QsJD6A7oO0KP8uGJ9iKy1m0Ps5OvjqBabz9wH48TqFBbArbSxjXjNO9OFgohJaS6fLkMoMQdlaZuhinf47EsBg3mxBi8paSaU=;7:Z9+rGunCDP/Ev+0JW+hkHFeChnn86Fa+eVvRUC97loV5g8Y2amo0DQDwah6/OFYjJrXiOO1OxELdy3lfDiSVtG78bqkVHzfp9V2SG4qIzM2go174Gcj+4ZxrB0RdqQGz6t1glxZR+otslvt9pVh6e7mDIHsRNw/EnTZJOdnWjmKswrgIGKD/bFNK4YaU93qKpPK8GZ+3HlEPeo368WgBD4usBIOdilFYZgBQbxBSw/0ao0Jpc6yZ0grIqIY9RTQF x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: 4c9b2fbe-e4e2-4a14-a2be-08d562e0f579 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); 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: XbCZAUTikhgascXJw+BzggfJB8Ne83pjUfv+hSauVzouOcwdKGndjaG/16KGHwFv5QHC7fLDW7j0Px7k7WzE0Q== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <4F015FF056D0B44BBE240DF51A805C2A@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c9b2fbe-e4e2-4a14-a2be-08d562e0f579 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:27.1887 (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 RnJvbTogRGF2aWQgSGlsZGVuYnJhbmQgPGRhdmlkQHJlZGhhdC5jb20+DQoNClsgVXBzdHJlYW0g Y29tbWl0IDRkNzcyY2I4NWY2NGMxNmVjYTAwMTc3MDg5ZWNiM2NkNWQyOTIxMjAgXQ0KDQpDb21t aXQgOWQ2NDNmNjMxMjhiICgiS1ZNOiB4ODY6IGF2b2lkIGxhcmdlIHN0YWNrIGFsbG9jYXRpb25z IGluDQplbV9meHJzdG9yIikgb3B0aW1pemUgdGhlIHN0YWNrIHNpemUsIGJ1dCBpbnRyb2R1Y2Vk IGEgZ3Vlc3QgbWVtb3J5IGFjY2Vzcw0Kd2hpY2ggbWlnaHQgc2xlZXAgd2hpbGUgaW4gYXRvbWlj Lg0KDQpGaXggaXQgYnkgaW50cm9kdWNpbmcsIGFnYWluLCBhIHNlY29uZCBmeHJlZ3Nfc3RhdGUu IFRyeSB0byBhdm9pZA0KbGFyZ2Ugc3RhY2tzIGJ5IHVzaW5nIG5vaW5saW5lLiBBZGQgc29tZSBo ZWxwZnVsIGNvbW1lbnRzLg0KDQpSZXBvcnRlZCBieSBzeXpib3Q6DQoNCmluX2F0b21pYygpOiAx LCBpcnFzX2Rpc2FibGVkKCk6IDAsIHBpZDogMjkwOSwgbmFtZTogc3l6a2FsbGVyODc5MTA5DQoy IGxvY2tzIGhlbGQgYnkgc3l6a2FsbGVyODc5MTA5LzI5MDk6DQ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