Received: by 10.213.65.68 with SMTP id h4csp2118751imn; Sun, 8 Apr 2018 20:10:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx49MAIKjJdhxqHs3DcIYO1mY3Q48/LwHuXVueG1LJE4o6ag38aXM0RwTpZCtf6/lFHsFAozW X-Received: by 10.101.90.203 with SMTP id d11mr23570213pgt.20.1523243412503; Sun, 08 Apr 2018 20:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243412; cv=none; d=google.com; s=arc-20160816; b=NwYeluzXt9jFqZqtUtoCWj+ivKvj04pWqZVBjnpcN2867KrjSdnSWSkuYpFpCL18Pi V9JhX5Xje9SDmM2oQpG7z1mUaktdfkHauvZ7killKUb/YTJTMN97ktXs8Qh62fRzu13e 4SXlWmloCXHjJO7Z3UuUTEUm9anTmgYWQGh72h8K0S/KYfGYaePXxCZmDBRU5a16YmVe jcp7mDdgkrhY7hbCLJA4sArIt8JxNVC0oug6iAFhE3S0Dvo6Y3PkcA09gL6409T7IQuK ULzoeSyecVQ0IU4IqepYdGTsPOXoIEF0+3w9QlHn+f8xvgOFOIiZYpkGuZthPV4Hz0gC JfcA== 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=k/Fn81HBJfQWR1e2ELaBiTl5c/GOJpwC7UwFPKILFko=; b=q45DNUAsUkX04QVndfmYGhVeVn3IXh4vWKR1/eg936HrkZhUGSADlYtP4FKcliD4io JOa2lolLuXjFtjPadRJnO901MoLF5wbnDUdyVlpL+hvqU4unD61n/f6/zmCrM9lsmIr+ JmFpbs5SPsgVKSt38xmFPWcj+AKqr2ILvc78NWRwjZPJZZ84/MQPhMXr+OHKEUhEbNwO hdJ6y1ktYfwyd4JLq8H0N8XDYTJ83pp2ern5YfUw2BLkvpwRcZ6I2vOrNYMKgRpWimre jRTOAWuQgrHt4YX2k7EIgiAR9wbOk3KdPiecH88byStYlDgBdjUANSodhUka8DHmUo9A peXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=dkZKY30l; 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 bj11-v6si1677458plb.480.2018.04.08.20.09.36; Sun, 08 Apr 2018 20:10:12 -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=dkZKY30l; 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 S1757461AbeDIBu5 (ORCPT + 99 others); Sun, 8 Apr 2018 21:50:57 -0400 Received: from mail-by2nam01on0130.outbound.protection.outlook.com ([104.47.34.130]:18358 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932342AbeDIAdv (ORCPT ); Sun, 8 Apr 2018 20:33:51 -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=k/Fn81HBJfQWR1e2ELaBiTl5c/GOJpwC7UwFPKILFko=; b=dkZKY30lBjiJgYYk08vsVbfEOU2HGfSARvknFq24e5X58Ty8newiF7//eqv/m8UunVfuOXj53UQbUn/SP7OtgF3aJxOFBIa7kCLkA3xQnneDSpsdYTPijA56LfqPcFvxyG6K2yW+tJfidXPrTR1qpTKpVXTPBiUEWtajNMpr2Rc= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0806.namprd21.prod.outlook.com (10.167.107.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.3; Mon, 9 Apr 2018 00:33:48 +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:33:48 +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.9 253/293] kvm: Map PFN-type memory regions as writable (if possible) Thread-Topic: [PATCH AUTOSEL for 4.9 253/293] kvm: Map PFN-type memory regions as writable (if possible) Thread-Index: AQHTz5lbKlXIaJKVx0iVnne1AVUENQ== Date: Mon, 9 Apr 2018 00:26:09 +0000 Message-ID: <20180409002239.163177-253-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-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;DM5PR2101MB0806;7:rdhyfC9lL53sz3XYnjqyFwz0Ah6IvReX0wIL1VIU7sElkp+Xo9cn9IpYqOMKo18X3JvEKFmLXugikwNQo9ZX9+arycPRNtHin6rEIXC/2B33USmMBwxjuKWheimEXSsFAJNeUOp7wo9SisECIDXi1E5WvUx6K+jGCGYVuQLaCWaEJtZjwYrkaV2T8hq1N6n3c4WGRg487dNE+r3tkvcw5Am6QPbg5LYbG2g9jwc74WpJIqh6wl7hbokUNWNRtJPa;20:JeDHjsyCy/OG/R1pCvX0OG80rpEcxacZlCZm7l0PnhNj0LfHSwjqUPS8I56lRk4mePgtYSYsMcq6WumXlw1Yd6H/rBH6gkd2sSKeEaBX2J9QYKNlHWJ6dGsYbi0d2ukFXhHy0tL64LtTVubPTq6ucLpdjmCs3h4md9sWYptJT38= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 949a06a8-ee88-4df8-2d8d-08d59db18f83 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0806; x-ms-traffictypediagnostic: DM5PR2101MB0806: 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)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB0806;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0806; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39860400002)(376002)(396003)(366004)(39380400002)(199004)(189003)(2906002)(25786009)(2501003)(10290500003)(476003)(11346002)(446003)(97736004)(5250100002)(68736007)(2616005)(102836004)(6506007)(3846002)(3660700001)(486006)(3280700002)(305945005)(6666003)(99286004)(5660300001)(76176011)(1076002)(186003)(26005)(7736002)(6116002)(81156014)(81166006)(86612001)(4326008)(105586002)(10090500001)(2900100001)(54906003)(22452003)(316002)(36756003)(110136005)(107886003)(8676002)(6436002)(478600001)(53936002)(66066001)(6486002)(6512007)(575784001)(86362001)(14454004)(72206003)(8936002)(106356001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0806;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: nGflfZbgzXEDwxyWZgmR+l4PqUGdJ95fDuwK9v6H4nE0Gv67va7/dVPOWwIC6N4+UMcY/GSS6G4fUdcNSC3ORDf80pLE+EPbFyFIAHrzGXiq0EXEfEZz1Hj8IGqgr2IHXU3uYJpep6xqi5Uynj55juzIMYu9v3h1zL4F9IGqpNUzYJmj0JSk1SqktBrExoYigIFFQWWVCfqtkgqHp6T/d54u1K/xUc9qYH4XmpSaIk9J9jbvf8zsJMhrxPJ/6nBmCQmFaR+zommw6YA8QoEDyDtGbeS0lAS8qGZlFET2ZIEYzCQTZgIBnTTws9Vm3fR3QYyrGqxlpvVdONuxdtn2/rKpUUU7yvmEQvOkTo7POJHe6+fCzBQaFPXSBi6Q/oe0Yb7FHu1oDmlIfjeUIJFTstYB+BoxTyNXn7Qs+zqM/2E= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 949a06a8-ee88-4df8-2d8d-08d59db18f83 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:26:09.9569 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0806 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 Z2VyLmtlcm5lbC5vcmcNClNpZ25lZC1vZmYtYnk6IEthcmltQWxsYWggQWhtZWQgPGthcmFobWVk QG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