Message ID | 20181127135030.1671-4-i.maximets@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-2.web.codeaurora.org (Postfix) with ESMTP id C8AC413BB for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 27 Nov 2018 14:04:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6DB6285BE for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 27 Nov 2018 14:04:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AAFF52B4D2; Tue, 27 Nov 2018 14:04:10 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 24D0E28AC8 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 27 Nov 2018 14:04:10 +0000 (UTC) Received: from localhost ([::1]:42576 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 1gRdyD-0006F6-4X for patchwork-qemu-devel@patchwork.kernel.org; Tue, 27 Nov 2018 09:04:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <i.maximets@samsung.com>) id 1gRdla-0002W7-Am for qemu-devel@nongnu.org; Tue, 27 Nov 2018 08:51:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <i.maximets@samsung.com>) id 1gRdlW-0000HC-Bq for qemu-devel@nongnu.org; Tue, 27 Nov 2018 08:51:06 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:47788) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <i.maximets@samsung.com>) id 1gRdlW-0000CJ-63 for qemu-devel@nongnu.org; Tue, 27 Nov 2018 08:51:02 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181127135100euoutp01fb9940a93c2de058ee2cd77efaea7227~q-2vApVGp2475424754euoutp01J for <qemu-devel@nongnu.org>; Tue, 27 Nov 2018 13:51:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181127135100euoutp01fb9940a93c2de058ee2cd77efaea7227~q-2vApVGp2475424754euoutp01J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1543326660; bh=G6qVNsagLahNnT1E1keUV+wN4Fdw+aYdI7s4h8/TiWc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=muLL5TY/kJBB8cUVSZkB7cIecCDzptwKvc+9whdn7OmT5YweSPnUuR6oBY+8ClKBc AsotP0sXdM55OvtOA+DrsNL3sWU217t6P+6M0HycIghUB5CoEOWoSIYnu2LTShOWWk Enqbdjf2+41cMhLcLJg0CKjfMeYaVUxKQL+TlL8Y= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181127135100eucas1p2f2d90cf8bb56d50464ac127f93e5de0a~q-2unAlw02251322513eucas1p2z; Tue, 27 Nov 2018 13:51:00 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id EC.E7.04441.3CB4DFB5; Tue, 27 Nov 2018 13:50:59 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181127135059eucas1p2371079ab1d368d8d444d6a183719cfc7~q-2tnPI-w0501505015eucas1p2N; Tue, 27 Nov 2018 13:50:59 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181127135058eusmtrp135371bbe7f38f9f5801c4dbbeb52869c~q-2tYwoHB2189621896eusmtrp1j; Tue, 27 Nov 2018 13:50:58 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-59-5bfd4bc3c5af Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 16.20.04128.2CB4DFB5; Tue, 27 Nov 2018 13:50:58 +0000 (GMT) Received: from imaximets.rnd.samsung.ru (unknown [106.109.129.180]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20181127135058eusmtip12368eb14ce92f09f041c7a7ed88f6d5d~q-2swWvGB1615916159eusmtip1k; Tue, 27 Nov 2018 13:50:58 +0000 (GMT) From: Ilya Maximets <i.maximets@samsung.com> To: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com> Date: Tue, 27 Nov 2018 16:50:29 +0300 Message-Id: <20181127135030.1671-4-i.maximets@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181127135030.1671-1-i.maximets@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCKsWRmVeSWpSXmKPExsWy7djP87qHvf9GG3xfY2jRcC/U4kr7T3aL 00c7mC2e3TrJbLGgrZ3VYv+2f6wWx3t3sDiwezy5tpnJ4/2+q2wefVtWMQYwR3HZpKTmZJal FunbJXBlPL7bzFLwiqViws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F3xglXpyd wQiSYBPQkTi1+giYLSLgJvHiwXGwImaB+4wSxzZNZQNJCAu4SBx52gW0goODRUBVYu6hOJAw r4CVxN+j86EWyEus3nAA7CJOAWuJ7/+WgLUKAdV8OvCKDaJeUOLkzCcsIGOYBdQl1s8TAgkz A7U2b53NPIFRcBaSqlkIVbOQVC1gZF7FKJJaWpybnltspFecmFtcmpeul5yfu4kRGC3bjv3c soOx613wIUYBDkYlHt4N339HC7EmlhVX5h5ilOBgVhLhdVb+Gy3Em5JYWZValB9fVJqTWnyI 0RTos4nMUqLJ+cBIziuJNzQ1NLewNDQ3Njc2s1AS5z1vUBklJJCeWJKanZpakFoE08fEwSnV wHg+5fMa2+Cb7OfjLNLLOMJ7Hu+pOuQbvuBupcbxg7knHu5bIq6aEvN/SXFWptee94+nPfra c1TyY63z3AtX2ib/rbsQr5FlLux48wvTL23bn8ujfl27++S1p0fvgYpfwWovuEMXv+jiFQ9v u/apfZOqXO5Lu00JOxJannmdle5fPPl6vKDure9KLMUZiYZazEXFiQAKTTQhrAIAAA== X-CMS-MailID: 20181127135059eucas1p2371079ab1d368d8d444d6a183719cfc7 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20181127135059eucas1p2371079ab1d368d8d444d6a183719cfc7 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181127135059eucas1p2371079ab1d368d8d444d6a183719cfc7 References: <20181127135030.1671-1-i.maximets@samsung.com> <CGME20181127135059eucas1p2371079ab1d368d8d444d6a183719cfc7@eucas1p2.samsung.com> Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 210.118.77.11 Subject: [Qemu-devel] [PATCH v2 3/4] memfd: set up correct errno if not supported 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: Eduardo Habkost <ehabkost@redhat.com>, qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ilya Maximets <i.maximets@samsung.com>, Paolo Bonzini <pbonzini@redhat.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 |
Series |
memfd fixes.
|
expand
|
diff --git a/util/memfd.c b/util/memfd.c index d74ce4d793..393d23da96 100644 --- a/util/memfd.c +++ b/util/memfd.c @@ -40,6 +40,7 @@ static int memfd_create(const char *name, unsigned int flags) #ifdef __NR_memfd_create return syscall(__NR_memfd_create, name, flags); #else + errno = ENOSYS; return -1; #endif }