Received: by 10.223.185.116 with SMTP id b49csp5913018wrg; Wed, 28 Feb 2018 00:27:45 -0800 (PST) X-Google-Smtp-Source: AG47ELumqVyarLFNne+RLGmo9D34qWbBvFimiKZouKzrt2xiATrf1SfaNO2glUeBWrm/i8p3SrCh X-Received: by 10.98.178.17 with SMTP id x17mr7610905pfe.2.1519806465578; Wed, 28 Feb 2018 00:27:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519806465; cv=none; d=google.com; s=arc-20160816; b=f0jAwBhMGt3XLsTke4SjIAsoBejZvbmJMwzBgtW0JAMPwIMmeW8x7NMedqbKuhrW9s H2wMn2xIdw78qvxOGoswwn4LP/ov4IplI2fy/5YWtR+mp8fTkOXmvEEgmTIP/XGiuGuk 2EJUbcnCzfq+Jb754ubL3RrEXHePhKcAtdUOpSDUDz642N65xOxzvvgo1yYHmvZGKoJP 6yoCrkN9HzghBEEd3Vsy0Uc/lYz3FCLG/7SBK0H+9CfIkL0KzyycgVnSLhwn3TQqCD1S GS16Ww70NudZB4etsh7E3aIsg5mFeHDbrS+5PM1f33cakoVlkWLXidvHncTVMWRnIy9Q /U0g== 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:subject:cc:to:from:date :arc-authentication-results; bh=hlQpPPSYcLnHYR//k63WQrI1CaQovOhfaBSO3nGyTPM=; b=nL3I4jL1zJZZzoGwSAOpcCGbc5AHG5oBaT65wPFsv6PjzdPngjMe3IWEhrqvyQJ/i7 pH2EHwrMYQmzkXFM7oJP2s9RZe+TwkoebzqFGNp5BFk9k2S2RSIXT6mJOexUZMKK1I6m vwulziTXEHi7zvUp0j3ElKT4TulRCm+cy1Xc1J3hjGequ1/JhqPS9IcDt9PyLTvMSzSd tJZDW3j7dcDBLnj3JaOO0PaNz3ycF4sGHovI49E4NstPsj0JUMAyOX8LyQab2CdV3jwK 7iKTsWPzHR7KEHzSdV4Yc5Rt/OrvvB9FaEVHyr5y/NGT6YMhiiRCmO+Sjsh+DF7kMI4c Pwhg== 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 d3-v6si920417pll.1.2018.02.28.00.27.29; Wed, 28 Feb 2018 00:27:45 -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 S1752066AbeB1I0f (ORCPT + 99 others); Wed, 28 Feb 2018 03:26:35 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54926 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751877AbeB1I0e (ORCPT ); Wed, 28 Feb 2018 03:26:34 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1S8ORe4069061 for ; Wed, 28 Feb 2018 03:26:34 -0500 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gdn2w0dyn-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 28 Feb 2018 03:26:22 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 28 Feb 2018 08:26:19 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 28 Feb 2018 08:26:17 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1S8QGFu45416512; Wed, 28 Feb 2018 08:26:16 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F1ECDAE057; Wed, 28 Feb 2018 08:17:01 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5FB51AE056; Wed, 28 Feb 2018 08:17:01 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.80]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 28 Feb 2018 08:17:01 +0000 (GMT) Date: Wed, 28 Feb 2018 10:26:14 +0200 From: Mike Rapoport To: Pavel Emelyanov Cc: Andrew Morton , Andrea Arcangeli , linux-mm , linux-api , lkml , crml Subject: Re: [PATCH 3/3] userfaultfd: non-cooperative: allow synchronous EVENT_REMOVE References: <1519719592-22668-1-git-send-email-rppt@linux.vnet.ibm.com> <1519719592-22668-4-git-send-email-rppt@linux.vnet.ibm.com> <1a2ed216-74ac-5fe2-abff-21d670eeb96d@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1a2ed216-74ac-5fe2-abff-21d670eeb96d@virtuozzo.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18022808-0040-0000-0000-0000041836D1 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022808-0041-0000-0000-0000261B3853 Message-Id: <20180228082613.GD15048@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-28_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802280102 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 11:21:02AM +0300, Pavel Emelyanov wrote: > > > @@ -52,6 +53,7 @@ > > #define _UFFDIO_WAKE (0x02) > > #define _UFFDIO_COPY (0x03) > > #define _UFFDIO_ZEROPAGE (0x04) > > +#define _UFFDIO_WAKE_SYNC_EVENT (0x05) > > Excuse my ignorance, but what's the difference between UFFDIO_WAKE and UFFDIO_WAKE_SYNC_EVENT? UFFDIO_WAKE is used when UFFDIO_COPY/UFFDIO_ZERO page are used with UFFDIO_*_MODE_DONTWAKE flag set and it presumes 'struct uffdio_range' argument to the ioctl(). Since waking up a non page fault event requires different parameters I've add new ioctl to keep backwards compatibility. > -- Pavel > -- Sincerely yours, Mike.