Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2818113ybf; Mon, 2 Mar 2020 16:26:09 -0800 (PST) X-Google-Smtp-Source: ADFU+vsqxN9F+zfiuRSQLsXgueNk/RvHUgKe18i66NKIhbA4yQIk7hppRZm+5hdujf5uEgDHzSrO X-Received: by 2002:a54:4510:: with SMTP id l16mr746570oil.70.1583195169873; Mon, 02 Mar 2020 16:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583195169; cv=none; d=google.com; s=arc-20160816; b=VQb3K7/RDj3erHc5+7RoJEeYUC5cXrYNOAFzrGJ4soH3HM+YPhuBANj6p1JW8fX3O6 1oE7HQojGin6LxwHZuNZPHNE6oVoOJQe0w8bxepi4R/Jlq4u4aQXKOgn89TAhmC4Y8NQ AvqqnbPWYWa4nYLnUs7voE7Qg5rSP7tL+g2h6zgW8t9Jaf1R2Oj9LAZV1xNJWfbg6UlN HStoADIplZC2gqZvXjvdw3jZ5Oi0v3fnvxijts5gApGfSg+dwDa6zvSt6R8gpTKjpUNW fukv6RIC6XWkdTBGwZZZNy82g5EAUW+JRQRv2Kc7WsZQJP8Nui5bWQ6D8BvkuY/VNa0j ricg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:date:subject:cc:to:from; bh=T23Z1y6sGJOd2w5yD+FgRtEyhp2NXWHVqVBZkBQz+ts=; b=LH1AwmEAQzDoepwQRYYbxAY6XmMJ9OTiJ2UqHFni+Kacmgr/YQ2VcP3dvggP0LXDv+ IBLiqX+keJa12vsfiwVzqfu6tDnkvwLo3pEHj7/jWq8+fWieeUw8TS96V4XmompmwkpW iQFV8zzTY2EH6UGNFoJyYn2kBmXDBQEuKVb3uSXJUp5BkPVrCy05ZYFgVpXhudyRRSCh nup8x6DD8jwWbzdlRI0w6hZLkqfRk+AvN7UqQ0zi8spuHUn+umJzGmzkBln7pSZzK3Fj Sf5X17jvWIu0J9197X18vDnneebnlNL7RRhEWpSM2r1a57wxdlbb8y+kgbHyzP8n8Lmo +xvg== 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 d20si7179287otq.157.2020.03.02.16.25.56; Mon, 02 Mar 2020 16:26:09 -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; 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 S1726890AbgCCAZQ (ORCPT + 99 others); Mon, 2 Mar 2020 19:25:16 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:39890 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbgCCAZP (ORCPT ); Mon, 2 Mar 2020 19:25:15 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0230LDvM139395 for ; Mon, 2 Mar 2020 19:25:15 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2yfn076ww7-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 02 Mar 2020 19:25:14 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Mar 2020 00:25:12 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) 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) Tue, 3 Mar 2020 00:25:09 -0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0230P7OY23462090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 3 Mar 2020 00:25:08 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DEF3042045; Tue, 3 Mar 2020 00:25:07 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 42FB54204D; Tue, 3 Mar 2020 00:25:07 +0000 (GMT) Received: from localhost.localdomain (unknown [9.145.0.1]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 3 Mar 2020 00:25:07 +0000 (GMT) From: Claudio Imbrenda To: linux-next@vger.kernel.org, akpm@linux-foundation.org, jack@suse.cz, kirill@shutemov.name Cc: borntraeger@de.ibm.com, david@redhat.com, aarcange@redhat.com, linux-mm@kvack.org, frankja@linux.ibm.com, sfr@canb.auug.org.au, jhubbard@nvidia.com, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH v2 0/2] add callbacks for inaccessible pages Date: Tue, 3 Mar 2020 01:25:04 +0100 X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20030300-0020-0000-0000-000003AFC6E8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20030300-0021-0000-0000-00002207F3FB Message-Id: <20200303002506.173957-1-imbrenda@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-03-02_09:2020-03-02,2020-03-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 mlxlogscore=711 impostorscore=0 adultscore=0 spamscore=0 priorityscore=1501 phishscore=0 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003020157 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset has a fixup for gup/mm, and provides the necessary arch hooks to enable protected virtualization. Andrew: please simply squash/fixup the first patch into the appropriate one that is already in your tree. v1 -> v2: * use put_compound_head in the first patch * fix commit message of the second patch * minor code cleanups * some comments to explain why sometimes we are not doing things Claudio Imbrenda (2): mm/gup: fixup for 9947ea2c1e608e32 "mm/gup: track FOLL_PIN pages" mm/gup/writeback: add callbacks for inaccessible pages include/linux/gfp.h | 6 ++++ mm/gup.c | 73 +++++++++++++++++++++++++++++---------------- mm/page-writeback.c | 5 ++++ 3 files changed, 58 insertions(+), 26 deletions(-) -- 2.24.1