Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6832520ybf; Fri, 6 Mar 2020 05:27:46 -0800 (PST) X-Google-Smtp-Source: ADFU+vumiKgc1Iv8eQ5skmakC3J9demi6WvkTWWmrntLnjZgFm6xvD/nYMWIrbQV6T1VWgvtbxxs X-Received: by 2002:aca:aa8b:: with SMTP id t133mr2441965oie.95.1583501266093; Fri, 06 Mar 2020 05:27:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583501266; cv=none; d=google.com; s=arc-20160816; b=JtMPp82DDIZL8a+Pm0/JGbQQ8NQiBL0ry1H5n8igzu3IvvK+cSNmQKLR/ry36n+9SZ tPM2EEDw+m5YWXemHqvKOw/cn5F/TNCtg/DOPkyoLzPQxgZJ7Sd9L8RvJbKGj0gbEOLG 7RBsZ2xAosFuxcJT2xg5WylFNNmGTYYUdjSSQs2OKD53xsdW+Xaz+SGd9vSExswnXB9D 4RCs4O7ADyXbXPM0RIIUh1jXojSpFqUKWeMDjuD55YxDq3ewc170pJxIc4TmWdpnUYh3 /YG6kuBY8/ZVDZ+E0+Eb0zZxzm9RdlYfxpMyvSG4HCvxsRXHOHIq0Y4IMCkyAhbWFUcM 9icg== 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=tqJOi3cJwinUzEe+7Llq2rPGFJs7ubWuEeSsr+KKINc=; b=TIHEQU2SgcgQS9sBYk2h4ipFDfnoCgIMJRCbT6FwJ80ssdqdWp0UkBPdzI8DL88WRg /APpfopp0b9bMiBgjfJjcIP+4d6+LMtuUpsrLEhq3ZDgY9d3dutHCcBYzMve5rUL5IVU VOgnQ0laFxZimPVwyHFwaJABUE8ZAhmcd7SiWCcPfkCLno2NuH8VkV+rpOCh0kWQvlJ9 odRSoDnZN+HajSPEteoRtCLlTBMgSBgOKmHh1M6lBzlwf3cVVklXrDe3A8XVKGNHROr4 fuKtU/KRqBoSRBZsxZ+9LfPpvw43MlTooAeNubrGqinhqdsy/6/uHVOayXyISyXZC3CB 37hA== 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 g23si1415179otr.31.2020.03.06.05.27.34; Fri, 06 Mar 2020 05:27:46 -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 S1726898AbgCFNZr (ORCPT + 99 others); Fri, 6 Mar 2020 08:25:47 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55830 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726054AbgCFNZq (ORCPT ); Fri, 6 Mar 2020 08:25:46 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 026DL9MU024289 for ; Fri, 6 Mar 2020 08:25:45 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ykp8maq5g-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 06 Mar 2020 08:25:45 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 6 Mar 2020 13:25:43 -0000 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.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) Fri, 6 Mar 2020 13:25:40 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 026DPcAu28180808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Mar 2020 13:25:38 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8A7A2A4053; Fri, 6 Mar 2020 13:25:38 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E6C3BA4057; Fri, 6 Mar 2020 13:25:37 +0000 (GMT) Received: from localhost.localdomain (unknown [9.145.0.1]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 6 Mar 2020 13:25:37 +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 v4 0/2] add callbacks for inaccessible pages Date: Fri, 6 Mar 2020 14:25:35 +0100 X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20030613-0020-0000-0000-000003B11797 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20030613-0021-0000-0000-0000220957F9 Message-Id: <20200306132537.783769-1-imbrenda@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-03-06_04:2020-03-06,2020-03-06 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=783 spamscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 clxscore=1015 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003060095 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. v3-> v4: * changed WARN_ON into VM_BUG_ON_PAGE as per review, * and small improvement of the associated comment v2 -> v3: * revert some cosmetic changes to improve readability * improve some comments 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 | 76 +++++++++++++++++++++++++++++---------------- mm/page-writeback.c | 9 +++++- 3 files changed, 64 insertions(+), 27 deletions(-) -- 2.24.1