Received: by 10.223.176.46 with SMTP id f43csp287583wra; Tue, 23 Jan 2018 21:07:06 -0800 (PST) X-Google-Smtp-Source: AH8x226fkEOXAZANQ6S/m1R0NfjCsp3ME2S+Bt0NfVvmXzKNMri30IMREstHF2YrB5kMHY3aPkBM X-Received: by 2002:a17:902:7e47:: with SMTP id a7-v6mr7215569pln.317.1516770426437; Tue, 23 Jan 2018 21:07:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516770426; cv=none; d=google.com; s=arc-20160816; b=iFpW9gV7rTWrLHBw/G2oi0oKjwokWT0x4b2Lbm1ujzZZIOXOO7VJeS1PNYAMuVzDHG XVY1OvGkT8Cxk0bxNh0WQXeyIDyFPymGRg7ZzNi5tXHpTRMAk5RNFFM9Zb+Yri6YBB5c bbX1763ovIvoI4BwtN51Cv1RUiViLL0JUEtiSOrT+IzLohass9ABLINnoS77iN7lhX49 p2cQJT8aJ+wiiIZTB9YDG2QQ7ze7G9/BH76B1Lb1LVZ+H1VcIvSEQQCi6RusOqo+RlTX d1G3yjcGVzMPTOy8Q/HgbD1mcY0GKdVpGnzOSIJSPFq/B9GyHXsapl39etyb1sUr095X VGUw== 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=6Re7TX7AGnYYFT9QE5wrJKPqNYJx2EuYFOf/qEy0a7k=; b=tFG5Nc07l1UaLHVGrNfJYRq7xXD2y7xyhygCPnNtBdpeMXPO9evbjh0ecFMunBMqC+ 3uulVaIDsgZUNfbnoRgL2S6L8wLdk45blyzJSrdjYhG8aBgWZVjdxrJwxoIDT34h0/lx lzJ3E7lv1kN5gl8EjNen2ai573plcfuiG+x1LTWmEXOQjwbNN1flBeVrs9fx33fvxkO7 0Yr4nObV7ushHywNkB2vLzOemCWAvTX2XDLhMJ+Eolz9T9e3wCEZyzvJeSosNYTNblk7 ZCVedy519U0lxzH0F6AuwYPYhHPWuip4DMhe60HNOEeVwsAgcru5ABu64CcZDW3e4eOR JacA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=adUzKz1a; 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 f31-v6si5615985plf.601.2018.01.23.21.06.52; Tue, 23 Jan 2018 21:07:06 -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=adUzKz1a; 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 S1752470AbeAXFEu (ORCPT + 99 others); Wed, 24 Jan 2018 00:04:50 -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 S1752357AbeAXEOb (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=6Re7TX7AGnYYFT9QE5wrJKPqNYJx2EuYFOf/qEy0a7k=; b=adUzKz1aVS5BFaThksd2phiGMe01i834xLVS7g6rGpTG0+KJNHlH1N7peon9csngE5xJ8TwIl3aZEsQt3sdsuO7Az+WnpmQogfvt0Gypn8aX074+SdCJa0Reyu9+GT2G5Bq4eGln9FQGCvWl/S8fkM25MVft5m4E0fIykROvA9w= 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: Nikita Leshenko , Konrad Rzeszutek Wilk , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 014/100] KVM: x86: ioapic: Preserve read-only values in the redirection table Thread-Topic: [PATCH AUTOSEL for 4.14 014/100] KVM: x86: ioapic: Preserve read-only values in the redirection table Thread-Index: AQHTlMnTLS9kj10kGUiNlGaxZMtRJg== Date: Wed, 24 Jan 2018 04:14:28 +0000 Message-ID: <20180124041414.32065-14-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:O+pGTUt5LZYxDytD3x+csm6dP8BudXbhJzZpilrUZa1zt5i/TNcYtZ+WmNJ0w1ps2B28tOTXHX4QSnyKQ26GvCmlV4jITyumkLgFG67kXnPMOK8eXGtmsmCJ6NGfeY7trd1aSppDZQkp+JZTYIfbBAO8fXGOifTRBsuhGaAJD+AeHQl4zBIeh1BrLts2+k/dqDuhXCP08RT2cM/ZtH1exbrXxOgW9ZP4vO92YYJ6IIrGkfHEf5mu5NIyxvRk9AfuwBz+ArCrRyYVmjMMUeZLfggMKKCRqmjKqYEO3xaDBfBDZazhnjaq6SxbWcGjH6LHFrXueJFNT4hGMc6ZObwXjuFRzfd+MemBt5JTPld38WaOD71KXt+tZyXlHGoZE/PL;5:xe6XNlD0hrHkS5Q8FEvI/Xg0FrvDUY8OKHg0wsTq1/AIGfQwXjnduZHCVZqArPsG2zpPCJDKHA27PjIystZUIaqLnVpRr9CUcNj1wcedTK8L3KAz7XR+3xBUOwLUw1fphxRYATYUn33t+PkZIkesHIIAxLPyvC7xHm9Eoe75GKw=;24:sRe4pfvxq00juJcw1g/GC1bvZTxyst+V33zL6d1TujRoJgm5jMLTcFi0+6PPOEpn17/uA/xhUutIFLDoC/Y2WN8fX0cumNaFn8vmVgIX0HI=;7:f6GhwqjQs4geXGk7XZoon1cYsZuPWuM0r4SdDxG97p0qolYiC3rbI4n+g1NOrDGbdb1NKJBtpZ6d0JRmLsB8tH33NYCkCjGzjlK1YcqjTLCEYmY8Q94MJSEZnVEOVjyhdDhwRZjYvdMKMUMjBG9V9jlMS2Dh36gLdwbVsySs5rtBFoI/tsrRkrrY7BruwYWUugDZEoJr1j9yL9L7+t6CHmmqdaUdFYMRmamhvCtMWyEL0G3dcqsKUNHLim90uMPE x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: 4e5e118b-f263-4c28-4e6d-08d562e0f690 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)(211936372134217)(130873036417446)(153496737603132)(194151415913766)(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)(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: TsAfDjEslhCBkzUad5kigBacNTfuR1Nz92tKumJMnsc92TT/31GDEiFF8HioWtY89z85F927R9LfALZB458L9A== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <202314679722694988C456DDD43D52D0@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e5e118b-f263-4c28-4e6d-08d562e0f690 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:29.0060 (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 IFVwc3RyZWFtIGNvbW1pdCBiMjAwZGRlZDBhNjk3NGEzYjY5NTk5ODMyYjIyMDM0ODM5MjBhYjI1 IF0NCg0KQWNjb3JkaW5nIHRvIDgyMDkzQUEgKElPQVBJQykgbWFudWFsLCBSZW1vdGUgSVJSIGFu ZCBEZWxpdmVyeSBTdGF0dXMgYXJlDQpyZWFkLW9ubHkuIFFFTVUgaW1wbGVtZW50cyB0aGUgYml0 cyBhcyBSTyBpbiBjb21taXQgNDc5YzJhMWNiN2ZiDQooImlvYXBpYzoga2VlcCBSTyBiaXRzIGZv ciBJT0FQSUMgZW50cnkiKS4NCg0KU2lnbmVkLW9mZi1ieTogTmlraXRhIExlc2hlbmtvIDxuaWtp dGEubGVzaGNoZW5rb0BvcmFjbGUuY29tPg0KUmV2aWV3ZWQtYnk6IExpcmFuIEFsb24gPGxpcmFu LmFsb25Ab3JhY2xlLmNvbT4NClNpZ25lZC1vZmYtYnk6IEtvbnJhZCBSemVzenV0ZWsgV2lsayA8 a29ucmFkLndpbGtAb3JhY2xlLmNvbT4NClJldmlld2VkLWJ5OiBXYW5wZW5nIExpIDx3YW5wZW5n LmxpQGhvdG1haWwuY29t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