Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2268284ybl; Sun, 18 Aug 2019 22:29:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtMwl3ZnEdIrzD5g/amQYoe+QBbYwPOBSaMesiWOmXsX/uypKT7m6/wFCSfuLYk2NzDhZK X-Received: by 2002:aa7:9719:: with SMTP id a25mr22868927pfg.2.1566192579784; Sun, 18 Aug 2019 22:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566192579; cv=none; d=google.com; s=arc-20160816; b=STe1a70PeQBoCPF3Ej2xrUwIlbY381bs3cmHuEzs224QW6SJ7M5mR2kTUoOaqQFJ5e PCOBpmi+n6JKRexQG2g4JQrYX6mmbnocbfVojJLuQ3srxglAjfuO4DUrwOrGj8vYwMD/ /Y7R3o6pMal94AaSNxygX0h35VNQC7oKlK2xDOjQzdTE5k8sTJgoCEGxTca5DVEdm1Ks ePSvYYryyKIcFzTOMrwGZNyz3Hk7VxT4AjzgE0+ezQ5KhOUGRx9M65ag9ju1LQmOQQDs /zC8j3fIVKQcAIVBf6bHRVTXXTocx7z3URxzTBJDIR5H6Vw42FE12hRO9Kw1hBpxNeOX 1WqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date; bh=5b6xX/xIvmaXso7fd+I0t/ofl/SP19kP99QziAwzF3k=; b=xewJdZdTt9LISnrSrQlpcyGbRMqx85UZfLmtgR/H6TU5uWSTzmcekvsriqR93tR0Fu tsWBuu6xpHP7G/HxSt1WHvaL6f8Z6/9Q1INbDeVmVAAuLdoG6VhxXUpQJUHGys5ym5pq CEyGN5wihHbRy36zkc1to30cKaxE7+hqYiisC2+od3DYKa7nv9pCuQKyFowyvKDk8pYC EZILwDPlPEUy4ikbnMOSmP6gblBb2cgQ/DF0F/N/UvKbVeib4DzFzJ17Dm4DtRjweHcd +CRbtcE+RrjbfrrR7LotzNGx/wTaXhpJLrq3xbQ5jG/j/JQ7Yg31i3RkCxeiO4XBHdqv bZvw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b16si9626114pfd.126.2019.08.18.22.29.24; Sun, 18 Aug 2019 22:29:39 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726560AbfHSF2F (ORCPT + 99 others); Mon, 19 Aug 2019 01:28:05 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:48190 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbfHSF2F (ORCPT ); Mon, 19 Aug 2019 01:28:05 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7J5RDBA034669 for ; Mon, 19 Aug 2019 01:28:04 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ufm44u209-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 19 Aug 2019 01:28:04 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Aug 2019 06:28:02 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 19 Aug 2019 06:27:58 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x7J5RvCN51708038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Aug 2019 05:27:57 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 32A0411C054; Mon, 19 Aug 2019 05:27:57 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4DABE11C04C; Mon, 19 Aug 2019 05:27:55 +0000 (GMT) Received: from in.ibm.com (unknown [9.109.246.128]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 19 Aug 2019 05:27:54 +0000 (GMT) Date: Mon, 19 Aug 2019 10:57:52 +0530 From: Bharata B Rao To: Christoph Hellwig Cc: Dan Williams , Jason Gunthorpe , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org Subject: Re: add a not device managed memremap_pages v3 Reply-To: bharata@linux.ibm.com References: <20190818090557.17853-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190818090557.17853-1-hch@lst.de> User-Agent: Mutt/1.12.0 (2019-05-25) X-TM-AS-GCONF: 00 x-cbid: 19081905-0020-0000-0000-00000361369F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19081905-0021-0000-0000-000021B66031 Message-Id: <20190819052752.GD8784@in.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-19_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=805 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908190062 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 18, 2019 at 11:05:53AM +0200, Christoph Hellwig wrote: > Hi Dan and Jason, > > Bharata has been working on secure page management for kvmppc guests, > and one I thing I noticed is that he had to fake up a struct device > just so that it could be passed to the devm_memremap_pages > instrastructure for device private memory. > > This series adds non-device managed versions of the > devm_request_free_mem_region and devm_memremap_pages functions for > his use case. Tested kvmppc ultravisor patchset with migrate_vma changes and this patchset. (Had to manually patch mm/memremap.c instead of kernel/memremap.c though) For the series, Tested-by: Bharata B Rao