From patchwork Mon Feb 3 16:04:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 24041 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 57BAC202B2 for ; Mon, 3 Feb 2014 17:36:39 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id hq11sf19164769vcb.8 for ; Mon, 03 Feb 2014 09:36:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version: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 :content-type; bh=GFMvItN64pVhN3OXPqCaM80ajrZWwa5v+qvXCinaNZk=; b=V8S1EnG58ZUB62uhY74CgedwPmjuIEXunSX9FVw0DmqEJkaA24BFD0gu9aw7hI6iCu w1AM/RSAnwgI8GquT0rj5lLgUM9S5xOMj3M8G86cjukABKmbjvIsd4S6zg9WNZsd4gt6 8fl4QupBz+vY0FZZBDwX4505Gwpseyv90+0FAz2CP5sFXMI4MJKKVj0W5sOeTV1m659t 9ssYhP3zS5S6sJrk0Z0bsEGdTZD8xHHQomH1bywczgYxwe9yqOBJkJfTfmkcg8nTn9+S WO+IMsw5+wxVdCG1v48GurE0Oy2ly4CvR7xukHimvAnrMOHuUSh6PkbKMgjK/LQ1A78C i4Fw== X-Gm-Message-State: ALoCoQlltxJ4aqoAOijh0hIqIb6oHEhSmeLrifmGusR82WLlYN9cOe/3LVyLXubcfvA3BaPvTMxF X-Received: by 10.58.221.74 with SMTP id qc10mr2717320vec.35.1391448998414; Mon, 03 Feb 2014 09:36:38 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.72 with SMTP id e66ls1940262qge.67.gmail; Mon, 03 Feb 2014 09:36:38 -0800 (PST) X-Received: by 10.58.118.233 with SMTP id kp9mr70689veb.52.1391448998316; Mon, 03 Feb 2014 09:36:38 -0800 (PST) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id er6si7026379vdc.10.2014.02.03.09.36.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 09:36:38 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id q16so4936222vbe.35 for ; Mon, 03 Feb 2014 09:36:38 -0800 (PST) X-Received: by 10.221.29.196 with SMTP id rz4mr14714384vcb.8.1391448998130; Mon, 03 Feb 2014 09:36:38 -0800 (PST) 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.220.174.196 with SMTP id u4csp171704vcz; Mon, 3 Feb 2014 09:36:37 -0800 (PST) X-Received: by 10.140.39.20 with SMTP id u20mr54674872qgu.73.1391448997288; Mon, 03 Feb 2014 09:36:37 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x4si15269874qad.108.2014.02.03.09.36.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 03 Feb 2014 09:36:37 -0800 (PST) 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]:48339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAM9N-0000pb-Fh for patch@linaro.org; Mon, 03 Feb 2014 11:13:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAM16-0000Ke-Si for qemu-devel@nongnu.org; Mon, 03 Feb 2014 11:05:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAM0z-00045O-60 for qemu-devel@nongnu.org; Mon, 03 Feb 2014 11:05:00 -0500 Received: from eu1sys200aog125.obsmtp.com ([207.126.144.159]:51764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAM0y-00045D-Qp for qemu-devel@nongnu.org; Mon, 03 Feb 2014 11:04:53 -0500 Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob125.postini.com ([207.126.147.11]) with SMTP ID DSNKUu++IjfsCP/qGEmolclvsBBbWrKGrUyN@postini.com; Mon, 03 Feb 2014 16:04:52 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 05EFD156 for ; Mon, 3 Feb 2014 16:03:46 +0000 (GMT) Received: from Webmail-eu.st.com (safex1hubcas2.st.com [10.75.90.16]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 092C52CB55 for ; Mon, 3 Feb 2014 16:04:34 +0000 (GMT) Received: from gnx2504.gnb.st.com (164.129.122.162) by webmail-eu.st.com (10.75.90.13) with Microsoft SMTP Server (TLS) id 8.3.297.1; Mon, 3 Feb 2014 17:04:36 +0100 From: Christophe Lyon To: Date: Mon, 3 Feb 2014 17:04:32 +0100 Message-ID: <1391443472-18030-1-git-send-email-christophe.lyon@st.com> X-Mailer: git-send-email 1.8.4.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 207.126.144.159 Subject: [Qemu-devel] [PATCH] 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: christophe.lyon@st.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index bc0ac98..2e7df53 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4029,6 +4029,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 } };