Received: by 10.223.185.116 with SMTP id b49csp5909422wrg; Wed, 28 Feb 2018 00:22:37 -0800 (PST) X-Google-Smtp-Source: AH8x224VewHzuGzSTKXzT3Yb+8Z+M0ymRwrgNvl/2kJg8gmTE1PjnfUjJRXBzhyrXJYwtwX2enr0 X-Received: by 10.99.103.133 with SMTP id b127mr13421767pgc.155.1519806157063; Wed, 28 Feb 2018 00:22:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519806157; cv=none; d=google.com; s=arc-20160816; b=SGSXae6ATicVwOfvhtfyS2xuQN0x/jAH9/djIGmVyS+tHN8qrbMrqyv70qpDZaDagA nmYDoz5yieYhOSkRCCxQq53Y5ft63NNuIGYoOfzmGgOFAwDQNeXmx4jDSHpgjEq4hKbI IKQInWv7O8xS/yUyyR//1B5Y/8V8sw00rKhaZPGjwVlIhzpPdPi9CaRN4LQQJKjbE6iC 8VGb32KYsPUPcnKxYrAf0VdYLXh14BxA0kOkw5spFdeP5VzCRKnv/1IAl5nSAgUwNPkL 6TnyVT4AhBUGE56jtYbgn46uUtwzNngp7XdWtOskVbd9KjhnC+rCaTZ7v8VJLvRk1FD+ ehqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=5kp+O6IHwN8GFLk/+nLs2RrpjewlZ6YrS23oSJSWNbY=; b=xGEli11FsYWxJT+rj8/ohEuJISiADI7z1mpfiBwramkaO+GjE/uZpJzbl7oa3gdlRm 5JgvYhUqWeZMMzG7l9/PqZ2nHXeCTMPrTao4WLkzyqbSWJEemTV3eJ4GqUMXeSrUUcUY 5yNiHNLX8XJMTyqb+Wv8Asfb8GYrOxGk0No/FsiV4Z8LXzNDSmJ1GMVbL0SzusQXjPXg 2OTNVxhq+3UxnogSjOdy5q3GiX0a32nolhbhT2aSCSE+Lh5uFuxeXekB9A7wz/IipOzj VvHIYUdERL+KdhplDtEASJqhTFJMkwVR2FfYl2eyrypAsYIrEA8tzmSj0XhCDARb8BEV m42g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=D0yRtITL; 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=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r26si736065pge.50.2018.02.28.00.22.19; Wed, 28 Feb 2018 00:22:37 -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; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=D0yRtITL; 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=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbeB1IVM (ORCPT + 99 others); Wed, 28 Feb 2018 03:21:12 -0500 Received: from mail-db5eur01on0103.outbound.protection.outlook.com ([104.47.2.103]:56314 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751758AbeB1IVK (ORCPT ); Wed, 28 Feb 2018 03:21:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5kp+O6IHwN8GFLk/+nLs2RrpjewlZ6YrS23oSJSWNbY=; b=D0yRtITL6vXh18XOnbQHQV+X5jtPNnkgwtADYmAxm9+BWkoTEmPLYpkD9+rsIBR6MfbkdKqPDECxkI5jtGAGVTaAgMEh5XbNfsSJ2SmSLB7ojMf4Qn6MKo3wrdZNm5z47cvH5grzjVyEkUPFFGOPDRkFje3iYe6s+G4M8NhGQC8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=xemul@virtuozzo.com; Received: from [192.168.43.229] (83.220.239.180) by HE1PR0802MB2139.eurprd08.prod.outlook.com (2603:10a6:3:c2::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Wed, 28 Feb 2018 08:21:06 +0000 Subject: Re: [PATCH 3/3] userfaultfd: non-cooperative: allow synchronous EVENT_REMOVE To: Mike Rapoport , Andrew Morton , Andrea Arcangeli Cc: linux-mm , linux-api , lkml , crml References: <1519719592-22668-1-git-send-email-rppt@linux.vnet.ibm.com> <1519719592-22668-4-git-send-email-rppt@linux.vnet.ibm.com> From: Pavel Emelyanov Message-ID: <1a2ed216-74ac-5fe2-abff-21d670eeb96d@virtuozzo.com> Date: Wed, 28 Feb 2018 11:21:02 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1519719592-22668-4-git-send-email-rppt@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [83.220.239.180] X-ClientProxiedBy: HE1PR0401CA0059.eurprd04.prod.outlook.com (2603:10a6:3:19::27) To HE1PR0802MB2139.eurprd08.prod.outlook.com (2603:10a6:3:c2::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 519f35ca-b114-43f8-183b-08d57e843731 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:HE1PR0802MB2139; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0802MB2139;3:JHi7ppmg9DsCHfjF4yFC7t1bIgu1NMpFB1vdNYKqflUtqsDuEpbfnaiePsdV5hZLrUGc2zeqx95E2vaJtpHRTgys89mqkRpnmtqqcSuJrpdTuAWRQeZoeJgpEN3UVXkBHtqPL8EodY7+/FOvR1/GHzEGYHffnH729NKiF1+88RJQOkxzTgN843LOzaeLBmdgu8bhXoWZJwNdQHiDffgiH0Uvc5gYq0X2rnKKvw7aNm028QGlYPfR911ARvn9sPBs;25:/XStzGrYZOc2fkkirZHxJ5S72q61/l+Bmuj/+rmEPE6Bbnqd0C7EeGEipwNJhj/5vPQGqa6Zcmx98PBGB50i8ilIOsB1Ga4fiIdbwNBcrYxHS2755rKB7kvFnDOOj12JJr2P2iFLnzd162iz1AYFuL/GtYasBjXbcDc1rcl4uSXN/KQ+Agd5lQGeKsitXXM+MMsudJxHQfWGxNyOUb1acby2jo+VP6KSvm0zwCFhV4G1ecQIM4kpGStChile+ASLlLAkl+lu0DnHBlZs5NSXQMvPJB4WIecQEL4isHtqhqquo/tSpysvuhID8RZGEtKp4+A+cmLyG6pcEH6Yw7Cafg==;31:LqF1rU9NGP9DRTo2zd8/7XOA8Qz512JuXWQovyEZBh2xBEu7WR0to8wvnK2WOw8+4uICDhQbDKe620y1j9s022P/z3q2TtQib8NAIX6YiBmvz5OfnPUftKBXuhU4A+D7TI1DGMOWrWd1SY64Cbe6zXnBHUWWjPq1lAJVi9CrdavymaLWy0wMHJL3jEQdVtC7/k0GAyIRUOqWV/S019HmOGzQk6y7FF2sWca1CMCVnWo= X-MS-TrafficTypeDiagnostic: HE1PR0802MB2139: X-Microsoft-Exchange-Diagnostics: 1;HE1PR0802MB2139;20:i+kkbkk78A2jeJIWi+KIwJKsL6QvDwc9bckY42X5GRWmyZJ5QjRev4yEbVoLRDFZgwkLc43h4ekM+vZc+xJ2jMCE++CPt2U59TvIfXbSv9CmZEc7IGPGLfyHNmGII6ygKwDYeAYTd7ySd3sNmb+/hHEmNA+iIqs1CCU53xpRgVtdpZmmsv+9tKLzviGKezCdtp/62b2sZgFWHevYXGhfpnWmLmk7HSXL8zop82Aan/Q0X0OlwpZMiV7pMGGJTsIPbEQ0e5dphhlMweFqLuX3GMnWMimR2cKQ7Qb8cjJaFNEj+eVp8Bp9PFPTiHCGYMTd5tI8dMKInyJfxazi+83HmxTx6x48jPUF0vq2Jkqo5+3dXdLEX59hLezbISKniF9dkZPnSpALqwyPlo6HcHDzUZCz+ZTkOYGmTV+Tt8ztmHLlXgN4WC3l39TT9LoXLoSDQpm7PyBL2y0b1BBd16cs8JaJjNl6c1rCqHaJvAcOJ8t0iaza8S7KZZ9Pb+5R7ncs;4:Yi8+UQTr8Ib5D+KXt/gvuAL4RXzth5j/eONK+ExsOCYFsTQ0sHsxSMsq6HsRxmoD4sULuJwh/ezbWy+8shQKFvO9ZSxGHHF4IzrsLND737foBI6rn0PD1B/qPNmTytqciBuw9htz42jhAQv24KXvQoBu7ryYmcIux8IzQnNgaf7ko3yxyst1zaGGAJglm7HvLECgS2uXcoDlVCAsFFV1RIfa9yGbw+jtGMcaKkvyszvOSOAAwzWkTNkKtj2MjJe8JC29yHmMENLB+nZvxdCX7g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(3231220)(944501217)(52105095)(93006095)(93001095)(10201501046)(6041288)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:HE1PR0802MB2139;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0802MB2139; X-Forefront-PRVS: 0597911EE1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(346002)(396003)(39850400004)(366004)(39380400002)(376002)(199004)(189003)(6666003)(316002)(106356001)(2950100002)(65956001)(65806001)(558084003)(31686004)(47776003)(117156002)(65826007)(66066001)(25786009)(7736002)(86362001)(5660300001)(305945005)(4326008)(6116002)(31696002)(105586002)(97736004)(229853002)(107886003)(6246003)(53936002)(3846002)(110136005)(52116002)(23676004)(68736007)(478600001)(54906003)(58126008)(2486003)(52146003)(36756003)(16576012)(8676002)(81166006)(2906002)(230700001)(81156014)(50466002)(8936002)(76176011)(386003)(26005)(16526019)(77096007)(64126003)(6486002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0802MB2139;H:[192.168.43.229];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4MDJNQjIxMzk7MjM6eXA3alNWSVV6enY1Y0hrR2tiSmlUVytx?= =?utf-8?B?MEZveVRCeEozZmV1ZHlDMWlZMWpWKzRKclR2clU2NW9lYmxpVll1MjBCakJP?= =?utf-8?B?RGp6b3hLNU4vbEpXbHowT0pBeDZPTlJ6dGNBUi9uck5vSUFFWUd4Q2ZYNFdv?= =?utf-8?B?TVY1eEZ3TGFkQm5VM044cFpGSkJvTFk4bVY3WkxxNC8xSFhZVEI5R3lqdXIv?= =?utf-8?B?blh4eGkzaExmY0tYWi9yTzdNaVBPL3pOT3FUaHFxMllKbkNHd3dUU0NMc2pQ?= =?utf-8?B?aE5JaUxrZXJMeXVJeWY2dnI2U0cxSkVDNU42aXIrbWxZT3ZUMmM4eVh2MUVS?= =?utf-8?B?Q0QvenJ3bTUzd0hQeG9TdVhra29FS1hqMzNnY2JkTFJDQXVBeE94dDI5RnFN?= =?utf-8?B?Nyt0NnRxZ2ZOc1F6Rmlmd3lUdzlMUkxJYzRzQ3FGbWxNRVpCTFBDbzlrUVFv?= =?utf-8?B?THB0aUozdCtlTTVncDNlbXhXNjh1UkhUdkwyTGk2S1piRjJ0OG1TZ3I4MTJ5?= =?utf-8?B?NU54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EPXqoSqnMbZdkVd4xWRyMl879+b7Ft3Cqw7KjiMGEl5rSwbb2DJaJNQ5TVT7zZ5NM74V6BUkKWcCfg7mwoPHiZwYT1o=;24:oTydXlG7ku6ogRq7onm7e51bt6YtzAV7miUcbshF7Avs6aG/IRUiwq3grmU3o4fdHVWew9l7nFL4ASfb3m82AJixMXKI3Dx2zNWTOVvlTWs=;7:8lTQAA6ZucInOtWmJ9oXJQ3QuZcbtuqrS82LiqA0et5HdiC6XizCTEXVZkW//Fd+sKU2mSfTMcuWc1LfoV0IbfF1pKmj65UoYZ1FaRETkGH/Yw0m4tBNGnjV/31FcMumw4ctUG2sCbRfh2dYjJakMq3LAgvwa4K5ayNUhfLm90jrTTgZmK0rKtdPzmoBB63rFjvi3Q2ICVQy6Uim6d2JGkwsAd1AW9FdyYfKpviNtNll/lpynn65138DYFRbcD8P SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR0802MB2139;20:woLIxCaLE2xmeTU0ygMxVU/OM3kzLe1YWHfGhhLZGYQaielm/pYxFNTq+KyFEE2jM/Ho3EMiqfAEdrU7t9Dsh07LzKKWlMAiPbpjwpiD1uFW8hB004pH9CUKEji1h3e6m1Ry8FtMB4zpEPl1kW1eJykddnD1gUrL+hYQAAwfI98= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2018 08:21:06.3916 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 519f35ca-b114-43f8-183b-08d57e843731 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2139 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -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? -- Pavel