Received: by 10.223.164.202 with SMTP id h10csp633801wrb; Wed, 22 Nov 2017 12:44:58 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ0Va2aCwNOkVO8OGGYYV0iTnDQ5GYQUJsf7gY1K32/XNNON0lhhKDhsFP2OxdatFjYzo5m X-Received: by 10.99.97.135 with SMTP id v129mr21880857pgb.184.1511383498298; Wed, 22 Nov 2017 12:44:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511383498; cv=none; d=google.com; s=arc-20160816; b=szx/5cxZBmcVcvIBeyfTDiOJdBwGml1cGIbBInBJqdNbuISTh2fEzZa289uImWkdwJ q5XnMHhsu7wFuP6DK8iddbiNGjNvAQzny2GPBMFOuJn8BchfdSxYnoBzy2UdeTzE0sXn /IQ7oPXrczOOGp0d8uaC3KsrY6xMaDFmcY+lafvFhyKxPrZFy2I8/L5lL33Vqc+2JTAj nBcUlcP9NO7XwYZ5Tzp4jgmMFEkUJJokqoqWQObKI4aG0h2Wo3YqOTgftT/nmrd6GdNl aZSBk+rbDZPRKVNtl1lDD1MeUwd3Owo0VZQydLn34iTTFPx6M59zAiYolZwYt3iodb0j +RwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:reply-to:mime-version:dkim-signature :arc-authentication-results; bh=yWDzih48BYUfgZXkhmZExZ+EIpOZyrZ/soWnrM18PiI=; b=KLvQe3pndvQOxVkZr4ZzuDIveP6T76yXpM5mLGlT99rdkI6uX+eO11rZk3qF6K4AiK yiFfwD9L46Oz2jAUWa5Kk6QJ7gK3xpyp/cnDxNvpHzIy5soN0tfHi5wifkrJPm+jRgzQ 3vj4/ePQwgZUsl8xF1sLreRm+TZc70gMOKfhNR89NbzEEsrTNaIR1S7JjUaywtS/9TY1 I0DdBKOrLJh+VEhsy0iqJ6VHVTUpC8fcsedGFmaquxuA6HdI2EalUKJJ34Bw2BM5H0TZ hLD/Ujkzrpl2l2QTbn4Lf6BSQT4YYQvis5aW+2iba1eC/39z4jQdbrZY38ampdy4UaZS XHLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AO9rDdY9; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si13839496pgp.582.2017.11.22.12.44.44; Wed, 22 Nov 2017 12:44:58 -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=@gmail.com header.s=20161025 header.b=AO9rDdY9; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751512AbdKVUn4 (ORCPT + 77 others); Wed, 22 Nov 2017 15:43:56 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35140 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbdKVUnx (ORCPT ); Wed, 22 Nov 2017 15:43:53 -0500 Received: by mail-wm0-f65.google.com with SMTP id y80so12702596wmd.0; Wed, 22 Nov 2017 12:43:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=yWDzih48BYUfgZXkhmZExZ+EIpOZyrZ/soWnrM18PiI=; b=AO9rDdY9iIEvblAYMZJiVwWa3Gy/2g+qui2Nd95rnE00nIQlwWgr78mwJp6uV0I9x9 G9f5y64oDjhSjqX/Xl7B2tMRNGfpmmD+kXTIHlKvA9K32/XAwJ/U5WLz9rRGLBCXtZ7w KrB7pAezVFa1ErbC5YC7RIzD7Ep5UKyngT2c0qM7JNBXFos/UQLwj8uSyTgFz/A6q4Cr K+7eaEKeMV0M5VqiUjcuzaU5Rx2927VWo59Bk6BCc6CMxeN3ZNGEEWZMFGF1FMfF4NDF R46XFMe8kx4wfgnrvYewcsQXgCSro6X7G63PDgsZZZ0/0a1bE1T2StvpT8i9sMxOQYOo uVaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=yWDzih48BYUfgZXkhmZExZ+EIpOZyrZ/soWnrM18PiI=; b=Z9oibZb8nSBTo5mpOf3mmAs987654Z7YPxnOcgrRB8vyf4yDBz/UgLXh7tWOCF4MrV HntR4LKVxuE2sePHm2ud/7JLHlFIL0/xz08TkEnwrBBeRNwlgt0n/Di/46gzIQYwDKun irkqT8V/o6aAAR5fGetJGxq8g1q2WIEArttS7ZblQ5VtvkOLKDrYTuwJk+90piS6t0xy 45lGnsK9h2GWVpZoltAuClytbwntcjJDyhIinlLRUOAifCuubHTzNalgygUpVW3m0yKk Fk6WMjIefDt6zh2bDoUUaocw+Yhj3cxW5EBMKt636PL1/k5/c9gXavFlaj6AraC1KM0j qjQQ== X-Gm-Message-State: AJaThX5ndsfl5OIvel75xry9RHKxxeJcLiJNQyT9uUNyjdsQbRGJ7qP3 DIWIumXqki+tW2y9oLHp4rUmDW/zSPr+aFzwLU4= X-Received: by 10.80.167.228 with SMTP id i91mr4624449edc.20.1511383432092; Wed, 22 Nov 2017 12:43:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.245.52 with HTTP; Wed, 22 Nov 2017 12:43:31 -0800 (PST) Reply-To: mtk.manpages@gmail.com In-Reply-To: <1511379391-988-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1511379391-988-1-git-send-email-rppt@linux.vnet.ibm.com> From: "Michael Kerrisk (man-pages)" Date: Wed, 22 Nov 2017 21:43:31 +0100 Message-ID: Subject: Re: [PATCH v3 0/4] vm: add a syscall to map a process memory into a pipe To: Mike Rapoport Cc: Andrew Morton , Alexander Viro , "linux-mm@kvack.org" , "linux-fsdevel@vger.kernel.org" , lkml , Linux API , criu@openvz.org, Arnd Bergmann , Pavel Emelyanov , Thomas Gleixner , Josh Triplett , Jann Horn , Yossi Kuperman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, On 22 November 2017 at 20:36, Mike Rapoport wrote: > From: Yossi Kuperman > > Hi, > > This patches introduces new process_vmsplice system call that combines > functionality of process_vm_read and vmsplice. > > It allows to map the memory of another process into a pipe, similarly to > what vmsplice does for its own address space. > > The patch 2/4 ("vm: add a syscall to map a process memory into a pipe") > actually adds the new system call and provides its elaborate description. Where is the man page for this new syscall? Cheers, Michael > The patchset is against -mm tree. > > v3: minor refactoring to reduce code duplication > v2: move this syscall under CONFIG_CROSS_MEMORY_ATTACH > give correct flags to get_user_pages_remote() > > Andrei Vagin (3): > vm: add a syscall to map a process memory into a pipe > x86: wire up the process_vmsplice syscall > test: add a test for the process_vmsplice syscall > > Mike Rapoport (1): > fs/splice: introduce pages_to_pipe helper > > arch/x86/entry/syscalls/syscall_32.tbl | 1 + > arch/x86/entry/syscalls/syscall_64.tbl | 2 + > fs/splice.c | 262 +++++++++++++++++++-- > include/linux/compat.h | 3 + > include/linux/syscalls.h | 4 + > include/uapi/asm-generic/unistd.h | 5 +- > kernel/sys_ni.c | 2 + > tools/testing/selftests/process_vmsplice/Makefile | 5 + > .../process_vmsplice/process_vmsplice_test.c | 188 +++++++++++++++ > 9 files changed, 450 insertions(+), 22 deletions(-) > create mode 100644 tools/testing/selftests/process_vmsplice/Makefile > create mode 100644 tools/testing/selftests/process_vmsplice/process_vmsplice_test.c > > -- > 2.7.4 > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ From 1584796365889799358@xxx Wed Nov 22 19:39:50 +0000 2017 X-GM-THRID: 1584796227698224638 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread