Received: by 10.213.65.68 with SMTP id h4csp2146280imn; Sun, 8 Apr 2018 20:55:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/zpPbYBeMOOngsBFPeFumGEbg77sRH4HpzeKOp52BMrPJ8r4rhKJPuVVk2tXBNZe35ql7/ X-Received: by 10.98.157.219 with SMTP id a88mr18305370pfk.75.1523246110093; Sun, 08 Apr 2018 20:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523246110; cv=none; d=google.com; s=arc-20160816; b=lC5snk2Yj+K/3GIA9nPB9XAKIoHvoQvsNBh5cJUGQfu3qoWojGgNUf7qvEL65olfHd 4guhHbXEkCQ7Dr1qTfUDaG3A3X970IxLoCnQ89Ky3hFQ9k390A65388Mu6lDgqs51RHn u7doEK8L2T0Mpuw3lcssQ/RkhjL4sUrLImf7cYrTrCJmrxWHSzfoPjvnHrWW45sH6qUT 5uyaGsbzQR1YZ8/rf97NvkrREb3tcwYxPS+8nWpi7c/FXVXSowXxozlMW2DceJs8JXNr IMZBvQ0cqYcN+ABKoRRt372v9hX/EX949ESZsndYFK33C3pKhTfS+IPR/E5c1hNcmT90 VhVA== 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=XSPNm5cW044QiP/JTTVtIeqMdngqTvtlpl7a7sAshsA=; b=PyJUWLbOTk+chf+1AxFpuLIVNQEDSL7SzZESJh2+QlZafpDS2T91AtB6WkKRM1CfBQ Qs/Iomb2QOd1bg9TgkWKcNM2strFlyZ+pFraxerCBJYt6W4hKByrMeoF5tA0pvt4uskS oMDae34yOQz+rtm7cl+7d2PIQjCARHMsZp+XxqD7ouSgM7wHGZ5GcgX9kgPwoS8Uxvj0 U4OwrTrL8w9QN+psz15sugxbQIUnk9vp46RLScKrf8oVllAocL/AVkIUK+SHfA0LHxos ufk6Ap2GjNSwJz+Dbv3JB19q1FrF7nxSuxQd99U17xo5AE+79EAAOAeI3HUEGOVh+HvX 6NKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=n1LPtH5g; 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 i81si12278588pfd.261.2018.04.08.20.54.32; Sun, 08 Apr 2018 20:55:10 -0700 (PDT) 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=n1LPtH5g; 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 S1754751AbeDIDtk (ORCPT + 99 others); Sun, 8 Apr 2018 23:49:40 -0400 Received: from mail-sn1nam02on0102.outbound.protection.outlook.com ([104.47.36.102]:30848 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754059AbeDIATa (ORCPT ); Sun, 8 Apr 2018 20:19:30 -0400 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=XSPNm5cW044QiP/JTTVtIeqMdngqTvtlpl7a7sAshsA=; b=n1LPtH5g/cXWoVIhExtckAsiaP7+3I0sMmWc/yzq8AvDNcrRakBSdmTqVdF/u7Q2JiRYn8c1uttYsClh2Q1xr6lwiUap7EP3dXhUYCUf58HoacCQ/VMtNpl0fAHFfGIUz2GfpGjhuOe43XBiTwyeGQrgGTULgcQhIr+E0ZLV8fk= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0726.namprd21.prod.outlook.com (10.167.108.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:19:26 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:19:26 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: KarimAllah Ahmed , Paolo Bonzini , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , "kvm@vger.kernel.org" , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 113/189] kvm: Map PFN-type memory regions as writable (if possible) Thread-Topic: [PATCH AUTOSEL for 4.15 113/189] kvm: Map PFN-type memory regions as writable (if possible) Thread-Index: AQHTz5hALtN0vF3+mEaxPFeibnUJqQ== Date: Mon, 9 Apr 2018 00:18:15 +0000 Message-ID: <20180409001637.162453-113-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-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;DM5PR2101MB0726;7:aeXy7qOmF5R/o3unlemUtPjO+ulpTikNfJFwNMvs9UfUR7R7jiKv8F0telgd5blk37/JL+X3HAKbWxswpUIFSOm8ACCUcIxLnzd9lOxPV0OVBq16++Ex4zhmUGw28oYpchw0zdmqmvhBZ7bAxP1TAj7qIyjVxNSMmRoXkb2wms0YClEg1MzANMp9DAuNJuaPDZZfwbbOXPIhk2IwWWLMdzLRD2VSURbqW50sqRvJ4Sr9qWJCNHxHRQlgyogv5bQ0;20:9KFiaakmDfTaYjysEsWZYWz3qutvTgTz6RGQ/WdSVSkQ/NKct6QUgsWflVDaEWYYWi1GWGdmcKbF2YL8cexypy9+D3dYXXwzg3UmOQUZCV1Nmnr+1sDnKSRqH52g4/5e9ezL6cHD6Lq3TEPU8p3kPCgU0YiiXq2gbSFgE+4OPVg= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 2e981af0-ba24-487e-2340-08d59daf8dda x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0726; x-ms-traffictypediagnostic: DM5PR2101MB0726: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(9452136761055); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB0726;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0726; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(346002)(39380400002)(39860400002)(396003)(376002)(199004)(189003)(6486002)(26005)(6512007)(4326008)(81166006)(6666003)(6436002)(81156014)(8676002)(97736004)(186003)(36756003)(72206003)(53936002)(107886003)(2906002)(86362001)(575784001)(76176011)(110136005)(305945005)(10090500001)(486006)(3660700001)(102836004)(5660300001)(14454004)(476003)(86612001)(446003)(99286004)(68736007)(66066001)(11346002)(54906003)(2616005)(1076002)(7736002)(5250100002)(25786009)(8936002)(478600001)(2900100001)(2501003)(3280700002)(105586002)(316002)(106356001)(22452003)(6506007)(3846002)(10290500003)(6116002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0726;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: rdoZsAt+H1c9A0U3zfxgrio6r9mnVFJq7qxmAP4QazyXQNFC8y8434na+6OuNEt3HXhXgRDWkuEybxzi/olGiUm+mtLEMTEvjVtgP1K0ALwLhuwcGEb+MEflLPNH6Hb7ijjrVeK8zd4H0ZNrNmCs5ZiO/IhSf2gufRDSMECfS0vQ+ZP8qQ9+IHzvvrFjs0D83t2ZbC1HvHaeU+RTFvdh5lcA3I+6w2EdthZiU8mKRM8Ex5231G0V896jCtGosubmnUZFUBvq5jUcziLEegDmJqZrONN7OEjxoiIJGxgb3jRAJYRqoNAsnSWtACJywVYyDLqVcG0iuUfbAtuZ9oXxb6yalvt2oCgFqnAQWtuiTacAusWatG6E1G+0IMsjBt/uMVoZ8xMY1W8J+G+xEGSFCOji4V0CmCK5HzF07FbIm1Y= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <263EB0FD930EA34692ED17E74B9646D1@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e981af0-ba24-487e-2340-08d59daf8dda X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:18:15.3809 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0726 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogS2FyaW1BbGxhaCBBaG1lZCA8a2FyYWhtZWRAYW1hem9uLmRlPg0KDQpbIFVwc3RyZWFt IGNvbW1pdCBhMzQwYjNlMjI5YjI0YTU2ZjFjN2Y1ODI2YjE1YTNhZjBmNGIxM2U1IF0NCg0KRm9y IEVQVC12aW9sYXRpb25zIHRoYXQgYXJlIHRyaWdnZXJlZCBieSBhIHJlYWQsIHRoZSBwYWdlcyBh cmUgYWxzbyBtYXBwZWQgd2l0aA0Kd3JpdGUgcGVybWlzc2lvbnMgKGlmIHRoZWlyIG1lbW9yeSBy ZWdpb24gaXMgYWxzbyB3cml0YWJsZSkuIFRoYXQgd291bGQgYXZvaWQNCmdldHRpbmcgeWV0IGFu b3RoZXIgZmF1bHQgb24gdGhlIHNhbWUgcGFnZSB3aGVuIGEgd3JpdGUgb2NjdXJzLg0KDQpUaGlz IG9wdGltaXphdGlvbiBvbmx5IGhhcHBlbnMgd2hlbiB5b3UgaGF2ZSBhICJzdHJ1Y3QgcGFnZSIg YmFja2luZyB0aGUgbWVtb3J5DQpyZWdpb24uIFNvIGFsc28gZW5hYmxlIGl0IGZvciBtZW1vcnkg cmVnaW9ucyB0aGF0IGRvIG5vdCBoYXZlIGEgInN0cnVjdCBwYWdlIi4NCg0KQ2M6IFBhb2xvIEJv bnppbmkgPHBib256aW5pQHJlZGhhdC5jb20+DQpDYzogUmFkaW0gS3LEjW3DocWZIDxya3JjbWFy QHJlZGhhdC5jb20+DQpDYzoga3ZtQHZnZXIua2VybmVsLm9yZw0KQ2M6IGxpbnV4LWtlcm5lbEB2 Z2VyLmtlcm5lbC5vcmcNClNpZ25lZC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