From patchwork Mon Jun 23 13:26:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 32354 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 616A820540 for ; Mon, 23 Jun 2014 13:29:57 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id db11sf24854377veb.1 for ; Mon, 23 Jun 2014 06:29:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=BoccYNVQFNMCZIJORwjxCBS+QLtNzK3QNPcpd9U+nPI=; b=hverTL+hCFYYFYI/1u1tI3u6BTHeVGZIEMzO7Rh0Skt6BB/n7yZ5855OsTx73GhRAk kZoRrJTAXGrmVF4XOSsPp84FEucMOsJTk0ThVzV9Ia86x5Hg+V/d816bDHOfIJ5jCTk3 SqSLswRRkGwsPFAOJ4YiINKG+dKwYL89dz48n6N2ae9Wy4KglWgpAeLzMbPrxtQc9YT+ 2oRllkdjJWxoOsI5GNnpXFBoHOBmq09d6BttI1Kj64tdH69HLYMjjQbTweCdkIWbVzcx HAPlhFt+zuAcFI4B6ZdkQKkb/rE34bBTpO9Qg6f3Ex4t/dBeiCybUt0TMg7uKjgv+Uz5 qZ8g== X-Gm-Message-State: ALoCoQlpPUblA+sZ4ti/jUoSTw712enAQ+GeSQLF7aRBnNvieFttwEUNxAf2J8+nDANfkycxeafM X-Received: by 10.58.8.50 with SMTP id o18mr9649582vea.13.1403530197226; Mon, 23 Jun 2014 06:29:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.18 with SMTP id q18ls1354263qgq.70.gmail; Mon, 23 Jun 2014 06:29:57 -0700 (PDT) X-Received: by 10.58.211.229 with SMTP id nf5mr18856394vec.19.1403530197152; Mon, 23 Jun 2014 06:29:57 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id pv20si8969957vdb.48.2014.06.23.06.29.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 23 Jun 2014 06:29:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.172 as permitted sender) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jz11so6108945veb.17 for ; Mon, 23 Jun 2014 06:29:57 -0700 (PDT) X-Received: by 10.220.53.72 with SMTP id l8mr19415904vcg.16.1403530197087; Mon, 23 Jun 2014 06:29:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp130766vcb; Mon, 23 Jun 2014 06:29:56 -0700 (PDT) X-Received: by 10.140.89.18 with SMTP id u18mr30638536qgd.90.1403530196602; Mon, 23 Jun 2014 06:29:56 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id do2si22445911qcb.21.2014.06.23.06.29.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 23 Jun 2014 06:29:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:53513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz4Jo-0007qt-5B for patch@linaro.org; Mon, 23 Jun 2014 09:29:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz4Gl-0003iG-4u for qemu-devel@nongnu.org; Mon, 23 Jun 2014 09:26:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wz4Gd-0001AK-3o for qemu-devel@nongnu.org; Mon, 23 Jun 2014 09:26:47 -0400 Received: from [2001:4b98:dc0:45:216:3eff:fe3d:166f] (port=37348 helo=afflict.kos.to) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz4Gc-00019V-MQ for qemu-devel@nongnu.org; Mon, 23 Jun 2014 09:26:38 -0400 Received: from afflict.kos.to (afflict [92.243.29.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id D418026544; Mon, 23 Jun 2014 15:26:35 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Mon, 23 Jun 2014 16:26:16 +0300 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 2001:4b98:dc0:45:216:3eff:fe3d:166f Cc: Christophe Lyon Subject: [Qemu-devel] [PULL 01/19] Add support for MAP_NORESERVE mmap flag. 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Christophe Lyon mmap_flags_tbl contains a list of mmap flags, and how to map them to the target. This patch adds MAP_NORESERVE, which was missing to the list. Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7d74079..007d59d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -3908,6 +3908,8 @@ static bitmask_transtbl mmap_flags_tbl[] = { { TARGET_MAP_DENYWRITE, TARGET_MAP_DENYWRITE, MAP_DENYWRITE, MAP_DENYWRITE }, { TARGET_MAP_EXECUTABLE, TARGET_MAP_EXECUTABLE, MAP_EXECUTABLE, MAP_EXECUTABLE }, { TARGET_MAP_LOCKED, TARGET_MAP_LOCKED, MAP_LOCKED, MAP_LOCKED }, + { TARGET_MAP_NORESERVE, TARGET_MAP_NORESERVE, MAP_NORESERVE, + MAP_NORESERVE }, { 0, 0, 0, 0 } };