Received: by 10.213.65.68 with SMTP id h4csp2121759imn; Sun, 8 Apr 2018 20:14:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx498jD+m5vdmS/jcCwMRQHu5s4fWTG3mmS+TVk5LLUK/9bDH2rFMQevJGIGBN6iCp4aiDsC2 X-Received: by 10.167.128.140 with SMTP id v12mr27944296pff.177.1523243660448; Sun, 08 Apr 2018 20:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243660; cv=none; d=google.com; s=arc-20160816; b=mfjkZwsJQxsTyZQZAPNj1hRYkfVwByJIAmjHxJ/7HJk6lnLxnMcLdlEJjnoDYYPP5s zmgqxPdr4FJB6DgRVcigsr+kicIACBReE2xOY/X+2hl2NCO5YkOsYLpqOa2hXKfKjZY3 VQ3pP40oiMAV+oC9Z8jkQSEs6ROCrKLI9uxPvV/u0ho+m4NVYLgpfKRH0dn0M1+nw/ps 0wwfSr6E7lywSC1VqqEVBk/RO0flw/LNraqFC/SotlXx+gJpyiGAbZ/7yXyhHYHQM7Z0 Iu8Lds+fVv2YTsr8bnQz6RvGPGuFy3ztsflWsvyjknqGkEu/oYmGPXTz3ngRkrGJRggj CTvg== 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=/WTg2dW+/aNkEqCvDdHBZstkf8J9ckl7MZ9QTdzLUP8=; b=F4Df1zTFcyeZy40DL/Rm74qu64efKZugK2kFtUiJYpmsl4c9/FwunIDV0Q+fbr1pCw pzuglp9iKUUOXeSSN8nA7WlEugqkmSfjaBZdZOx4zQRP6XhvHHHOLEMlvK5eUQ3RdVfQ +HNOIOuq6tFqtxgWPzIAUC5ClUQxeTdKKmY302wWS231hmFAFtMZnYzE37oWEWSj0ykD 2cPGye3w2UEMB3VWIYpQGdRT1LS9IW12XgsLq4BCvYkz0JvU2F0M0FogCQLK6uqrH4qY AeR6dHwCRBt9Th5Xy+4C1uG1HFKmVfIAENRvQbLpQj7VeDALoRM0Hj0i8RRKW8OByqFv i5iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Za+/yWgb; 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 12-v6si13749081plb.342.2018.04.08.20.13.43; Sun, 08 Apr 2018 20:14:20 -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=Za+/yWgb; 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 S1753938AbeDIDGq (ORCPT + 99 others); Sun, 8 Apr 2018 23:06:46 -0400 Received: from mail-by2nam03on0117.outbound.protection.outlook.com ([104.47.42.117]:63840 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932085AbeDIAYi (ORCPT ); Sun, 8 Apr 2018 20:24:38 -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=/WTg2dW+/aNkEqCvDdHBZstkf8J9ckl7MZ9QTdzLUP8=; b=Za+/yWgbdTLBEJBt0iFEPP2ftERSk2h71jHcmE0EWeW2w5+y8pdZCqdgMM94cZD5RTQSseyT5VbLML3hyd2gl0PBjCoAU8WJN5YdPXO56h/tE9CCQk7aRRMYBHYTYc73YCrEMpIy+zNDFmfwEWO9tGu8F3RAFJn/r4Xss3z+YoA= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0984.namprd21.prod.outlook.com (52.132.133.30) 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:24:34 +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:24:34 +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.14 093/161] kvm: Map PFN-type memory regions as writable (if possible) Thread-Topic: [PATCH AUTOSEL for 4.14 093/161] kvm: Map PFN-type memory regions as writable (if possible) Thread-Index: AQHTz5iltL14TsN+50Sd4FBQvJgq+A== Date: Mon, 9 Apr 2018 00:21:04 +0000 Message-ID: <20180409001936.162706-93-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-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;DM5PR2101MB0984;7:FXcVMPkDHLz+s607s0sOcnd2iJpkXpqQuHoEhuVOU1NPK9qK3n93r5/q7OWu1k1oy4u6n1ynxW6d+4XT0Zq3rMrinz/q6I098jC+i4T0KiuqCI0sUvb6JM/tzy4dck7C/xoqTR7UVOwvgyr+pmtEQF8tjg+ptRcWz2tBMJ22rF64fSQQ57kGmaDVmZ/QFJQ2sJYhl1WHJS0IqIbn6/EVUjfiI9MehbCJgzcF96+uaHQICed8DCo/dTGc/8uZj4TP;20:ryXVQO+3CgwEc96dvJ1wwzPEJCyFCC9Zn44Y9I8Vqk3nY5W4LP1O/uPPNN4uqsT6ol6freFLz7MhB4eoBPvSlHHpOrWImSKqc81Tjp+2NVAxt25pe4HxBhu+Te1dBoglIIthmITYurl03dtsp+lmc/9go/kK6zTWRsJkIVDKjtw= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 50e85e47-796f-4e75-6af5-08d59db0451e x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0984; x-ms-traffictypediagnostic: DM5PR2101MB0984: 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)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0984;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0984; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(346002)(376002)(366004)(39860400002)(396003)(189003)(199004)(5250100002)(2501003)(110136005)(54906003)(6116002)(6436002)(11346002)(1076002)(486006)(25786009)(105586002)(2900100001)(102836004)(86612001)(3846002)(68736007)(107886003)(316002)(10290500003)(5660300001)(86362001)(2616005)(305945005)(4326008)(446003)(6486002)(22452003)(7736002)(575784001)(476003)(8676002)(81156014)(81166006)(8936002)(6512007)(10090500001)(186003)(3280700002)(106356001)(76176011)(2906002)(99286004)(26005)(97736004)(14454004)(6666003)(478600001)(53936002)(6506007)(36756003)(72206003)(66066001)(3660700001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0984;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: bnGBplKApcaaE4vgQutru76bDEf7zOPAz75+oEOVQu7BcxmlhaYOfuSYVswEjSeH9SuIvZFmzD4U6zbjHCqS7dfzML7ZQw4vbAsoLHPe1tCiKwYOf+9DdqGMupc7sV9nHgKKM6BAlqK+xoxixy15RyxbUg96/v1acJdHBjeAJNSMGtUvLckyZWnAbImvTQTyyGLhmrFpKy1GnbtBpz3wjyHR0hiXnbp2YFRiy9sdWZFTop/20dzWtsyssL2wkRlZek6JStlwm6hrGnLzAMK075uJ5t2bSfAK1a/OVNPPvwpySOhod+x4HIWbinqNhYE+G3czyrl8xU/o5Lhqgc5wbY3NdwG2LL1n8dKcrG5O4MnFZEgDfrgwQr7FWEROELxCkKa0HS7k96AltH/XZ6tGl4NcenO5lrsUCvV45pmBxts= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <881A07353CB62F478AFCEA706861C670@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50e85e47-796f-4e75-6af5-08d59db0451e X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:21:04.4564 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0984 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 Z2VyLmtlcm5lbC5vcmcN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