From patchwork Sat Jun 21 22:53:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 362485 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 845EB140077 for ; Sun, 22 Jun 2014 08:56:29 +1000 (EST) Received: from localhost ([::1]:46681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyUCx-0000oS-Po for incoming@patchwork.ozlabs.org; Sat, 21 Jun 2014 18:56:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyUAk-0005S2-0t for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:54:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyUAc-0005h2-46 for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:54:09 -0400 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:51035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyUAb-0005gh-Uh for qemu-devel@nongnu.org; Sat, 21 Jun 2014 18:54:02 -0400 Received: by mail-we0-f172.google.com with SMTP id u57so5269684wes.31 for ; Sat, 21 Jun 2014 15:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=X5szCdgGUMbrDPOZ8nCI5ZZP1Ey99wRt0xvziFoZru0=; b=NqpKe8fG3LChGq7f3ksX4IswrhI3F2vvinF3bfc6VO0UN99wThlCP0FzXa/PbWqRaw VFXs8yHtHjwwm2DUq1GdiSLCtO4kgfRnilkTWnlRXE7NN9tuO55sBmWrftkK/KVEDX3x avfk6iAWBHH21EWaS+2eR0Ozf0W3BeNSbmmiLgt4z3wdgbZcrp98c49JrZOqHl8XxRA2 c3fsXHRP8BJYdx0/rcrt6BhF4riItnCfnwTdvoPt2ETP6HSTM2ROz7u3tQK1WrG/zJ7a I1gieDsS/pMdpEd8RQaS+54+As5ez9VFuLaZZFNoVWyZqFcTdzpWDLJe421C1mravdBE e6cw== X-Received: by 10.180.12.137 with SMTP id y9mr827795wib.46.1403391240724; Sat, 21 Jun 2014 15:54:00 -0700 (PDT) Received: from pburton-laptop.home (host81-156-187-173.range81-156.btcentralplus.com. [81.156.187.173]) by mx.google.com with ESMTPSA id ub8sm17971892wib.0.2014.06.21.15.53.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 21 Jun 2014 15:54:00 -0700 (PDT) From: Paul Burton To: qemu-devel@nongnu.org Date: Sat, 21 Jun 2014 23:53:09 +0100 Message-Id: <1403391191-18603-15-git-send-email-paul@archlinuxmips.org> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1403391191-18603-1-git-send-email-paul@archlinuxmips.org> References: <1403391191-18603-1-git-send-email-paul@archlinuxmips.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22c Cc: Riku Voipio , Paul Burton Subject: [Qemu-devel] [PATCH v2 14/16] linux-user: support the unshare syscall X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Add support for the unshare syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- Changes in v2: - None. --- linux-user/syscall.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0bbdf61..936064c 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9548,6 +9548,12 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, break; #endif +#ifdef TARGET_NR_unshare + case TARGET_NR_unshare: + ret = get_errno(unshare(arg1)); + break; +#endif + default: unimplemented: gemu_log("qemu: Unsupported syscall: %d\n", num);