Message ID | 1494595886-30912-2-git-send-email-a.perevalov@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ABFFE60382 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 12 May 2017 13:39:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A72AC286B6 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 12 May 2017 13:39:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C28D28776; Fri, 12 May 2017 13:39:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 23E54286B6 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 12 May 2017 13:39:19 +0000 (UTC) Received: from localhost ([::1]:53858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1d9Ams-0002Jr-Bk for patchwork-qemu-devel@patchwork.kernel.org; Fri, 12 May 2017 09:39:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <a.perevalov@samsung.com>) id 1d9Afi-0005Nx-Kx for qemu-devel@nongnu.org; Fri, 12 May 2017 09:32:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <a.perevalov@samsung.com>) id 1d9Afd-00071j-L2 for qemu-devel@nongnu.org; Fri, 12 May 2017 09:31:54 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:26721) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <a.perevalov@samsung.com>) id 1d9Afd-00071C-E7 for qemu-devel@nongnu.org; Fri, 12 May 2017 09:31:49 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OPU00J4JDKXK910@mailout3.w1.samsung.com> for qemu-devel@nongnu.org; Fri, 12 May 2017 14:31:45 +0100 (BST) Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170512133145eucas1p11d03ef27a1b3a559dacf9754b903e034~93w6cUYFF2939829398eucas1p1d; Fri, 12 May 2017 13:31:45 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1.samsung.com (EUCPMTA) with SMTP id 84.72.14140.349B5195; Fri, 12 May 2017 14:31:47 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170512133144eucas1p288cde3bd6faefb16cbb0d3790885783d~93w5sqIQa0751207512eucas1p2L; Fri, 12 May 2017 13:31:44 +0000 (GMT) X-AuditID: cbfec7ef-f796a6d00000373c-56-5915b94394e4 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id AD.71.20206.069B5195; Fri, 12 May 2017 14:32:16 +0100 (BST) Received: from aperevalov-ubuntu.rnd.samsung.ru ([106.109.129.199]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OPU00791DKM5L30@eusync1.samsung.com>; Fri, 12 May 2017 14:31:44 +0100 (BST) From: Alexey Perevalov <a.perevalov@samsung.com> To: qemu-devel@nongnu.org Date: Fri, 12 May 2017 16:31:18 +0300 Message-id: <1494595886-30912-2-git-send-email-a.perevalov@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1494595886-30912-1-git-send-email-a.perevalov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsWy7djP87rOO0UjDea8V7KYe/c8i0Xvtnvs Flfaf7JbbNn/jd3ieO8OFgdWjyfXNjN5vN93lc2jb8sqxgDmKC6blNSczLLUIn27BK6M1c2L mAuWsldcPXOWsYHxK2sXIyeHhICJxPuTrcwQtpjEhXvr2boYuTiEBJYxSrTffMgGkhAS+Mwo sfM4UxcjB1jDkj0GcDUrunZANXQzSSxeM5MdpIhNwEBi3z1bkF4RAUmJ312nwRYwC8RKvL1+ DWymsECQxLxlz1lBylkEVCX6GmVAwrwC7hKtrbug7pGTOHlsMtidnAIeEo/v3mIFWSUhcJtN 4trzbywQ98hKbDoAVe8iMWXdNSYIW1ji1fEt7BC2jMTlyd0sEL3tjBLdOzuhBk1glDgz/S9U lb3EqZtXmSAO5ZOYtG06M8QCXomONiGIEg+JazdmMkLYjhLvN15ghfh9NjB8FnewT2CUWcDI sIpRJLW0ODc9tdhQrzgxt7g0L10vOT93EyMwLk//O/5+B+PT5pBDjAIcjEo8vAprRSOFWBPL iitzDzFKcDArifAabgEK8aYkVlalFuXHF5XmpBYfYpTmYFES5+U9dS1CSCA9sSQ1OzW1ILUI JsvEwSnVwKgappPn/VJTcOf023N93grevVid7RL77XPD/JVms2w/tqdH+L25sVVsReClsMDM zAmzNzn2uZhocJiZb4myetzhmHvB6HFHtciRds7KKRP1wiYv1fnTWnpQiqdPe86GxD1xKs9O 8b1RKo1uNJQttcoVcZHgvOHV3LObvzHmkcEX7XdGbzq/K7EUZyQaajEXFScCAFEzTqzHAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsVy+t/xy7oJO0UjDXY+FrCYe/c8i0Xvtnvs Flfaf7JbbNn/jd3ieO8OFgdWjyfXNjN5vN93lc2jb8sqxgDmKDebjNTElNQihdS85PyUzLx0 W6XQEDddCyWFvMTcVFulCF3fkCAlhbLEnFIgz8gADTg4B7gHK+nbJbhlrG5exFywlL3i6pmz jA2MX1m7GDk4JARMJJbsMehi5AQyxSQu3FvP1sXIxSEksIRR4vWSfUwgCSGBXiaJc8tEQerZ BAwk9t2zBQmLCEhK/O46zQxiMwvESlya8IINxBYWCJCYvnsHE0g5i4CqRF+jDEiYV8BdorV1 FzPEKjmJk8cms4LYnAIeEo/v3mKF2OQusa1hKdsERt4FjAyrGEVSS4tz03OLjfSKE3OLS/PS 9ZLzczcxAsNz27GfW3Ywdr0LPsQowMGoxMNbsV40Uog1say4MvcQowQHs5IIr+EWoBBvSmJl VWpRfnxRaU5q8SFGU6CbJjJLiSbnA2MnryTe0MTQ3NLQyNjCwtzISEmcd+qHK+FCAumJJanZ qakFqUUwfUwcnFINjDXOC/e/Lk7iXimz9MOGCm2uT2bbhbqv1YuwqpYEm23UeL+DQajO2c/X 6PBhlQub5CxPeT5f7KCycNXpxzvW2Irs3T+1ijX7j/JtN5svXce+m3DMvPHVbGWIwP/DbjYf 2Q6+P+biuVvgSt6a1Szrnvue2O6ecvSq4Z8XrNvjChXspcS2rjFT5lZiKc5INNRiLipOBADK vvLrZQIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170512133144eucas1p288cde3bd6faefb16cbb0d3790885783d X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?QWxleGV5IFBlcmV2YWxvdhtTUlItVmlydHVhbGl6YXRpb24g?= =?UTF-8?B?TGFiG+yCvOyEseyghOyekBtTZW5pb3IgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?QWxleGV5IFBlcmV2YWxvdhtTUlItVmlydHVhbGl6YXRpb24g?= =?UTF-8?B?TGFiG1NhbXN1bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG0NJU0hRG0MxMEdEMDFHRDAxMDE1NA==?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170512133144eucas1p288cde3bd6faefb16cbb0d3790885783d X-RootMTR: 20170512133144eucas1p288cde3bd6faefb16cbb0d3790885783d References: <1494595886-30912-1-git-send-email-a.perevalov@samsung.com> <CGME20170512133144eucas1p288cde3bd6faefb16cbb0d3790885783d@eucas1p2.samsung.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 210.118.77.13 Subject: [Qemu-devel] [PATCH V5 1/9] userfault: add pid into uffd_msg & update UFFD_FEATURE_* X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: i.maximets@samsung.com, dgilbert@redhat.com, peterx@redhat.com, a.perevalov@samsung.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/linux-headers/linux/userfaultfd.h b/linux-headers/linux/userfaultfd.h index 2ed5dc3..e7c8898 100644 --- a/linux-headers/linux/userfaultfd.h +++ b/linux-headers/linux/userfaultfd.h @@ -77,6 +77,9 @@ struct uffd_msg { struct { __u64 flags; __u64 address; + union { + __u32 ptid; + } feat; } pagefault; struct { @@ -158,6 +161,8 @@ struct uffdio_api { #define UFFD_FEATURE_EVENT_MADVDONTNEED (1<<3) #define UFFD_FEATURE_MISSING_HUGETLBFS (1<<4) #define UFFD_FEATURE_MISSING_SHMEM (1<<5) +#define UFFD_FEATURE_EVENT_UNMAP (1<<6) +#define UFFD_FEATURE_THREAD_ID (1<<7) __u64 features; __u64 ioctls;
This commit duplicates header of "userfaultfd: provide pid in userfault msg" into linux kernel. Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com> --- linux-headers/linux/userfaultfd.h | 5 +++++ 1 file changed, 5 insertions(+)