From patchwork Sun Jun 29 12:14:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 32663 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f70.google.com (mail-qg0-f70.google.com [209.85.192.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9B95623577 for ; Sun, 29 Jun 2014 12:16:13 +0000 (UTC) Received: by mail-qg0-f70.google.com with SMTP id z60sf2873675qgd.5 for ; Sun, 29 Jun 2014 05:16:13 -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=ePG8zl9OCFZmPpMQJe3lJG9XoK/4ANepvkLkIPf0nVs=; b=S7DSRp5p8Gr0pFL03yU1myb9qVBSzGcBDcloANB2n1O6XbpBSMCyfTt+tzbCj2W45Q TDfucjNnLMhWzFQ9Q6rB+/iWOo6uw3adUTE14MRPD7ixlNRFDjrw6SwhezdHh8D8UYpv 9DJUwkM4Qt81iUKQJEHVl3RSSuryBZxPwxEYv0il8kxPiRKNzCISJVp12DP1TU+aFlO8 5Co6mXn7NlYxiX1mHn8kUSHLoo+RcWJwDXD9k7cq5ktr1YT+aFCf2v1NIFixi3/Ce8l+ oIvoPS32tj3noxHZfHT5K2xEN6v48b3plhOZT4ftiFdi2f8PygCgsRbx8Yi/Ge9l/7S3 LcGA== X-Gm-Message-State: ALoCoQmBx/7x/d7x3aGB0Ga0RQTNAUT3CMFoNHl9Wa4b7bw4OE5Vm93StxsYF6Svv2+so5+6kSYq X-Received: by 10.52.120.47 with SMTP id kz15mr16097301vdb.5.1404044173224; Sun, 29 Jun 2014 05:16:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.193 with SMTP id q59ls1170814qga.91.gmail; Sun, 29 Jun 2014 05:16:13 -0700 (PDT) X-Received: by 10.58.132.70 with SMTP id os6mr48395veb.36.1404044173106; Sun, 29 Jun 2014 05:16:13 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id n1si8828976vem.71.2014.06.29.05.16.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Jun 2014 05:16:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id lf12so6534188vcb.18 for ; Sun, 29 Jun 2014 05:16:13 -0700 (PDT) X-Received: by 10.58.198.67 with SMTP id ja3mr29523056vec.10.1404044173023; Sun, 29 Jun 2014 05:16:13 -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 tc5csp72361vcb; Sun, 29 Jun 2014 05:16:12 -0700 (PDT) X-Received: by 10.140.41.202 with SMTP id z68mr47571903qgz.37.1404044172496; Sun, 29 Jun 2014 05:16:12 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id hz8si20949718qcb.28.2014.06.29.05.16.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 29 Jun 2014 05:16:12 -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]:57493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1E1k-0005Ms-1W for patch@linaro.org; Sun, 29 Jun 2014 08:16:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1E0c-00042X-Ec for qemu-devel@nongnu.org; Sun, 29 Jun 2014 08:15:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1E0W-0000ao-UV for qemu-devel@nongnu.org; Sun, 29 Jun 2014 08:15:02 -0400 Received: from afflict.kos.to ([92.243.29.197]:54954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1E0W-0000ae-MT for qemu-devel@nongnu.org; Sun, 29 Jun 2014 08:14:56 -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 7DBE92651C; Sun, 29 Jun 2014 14:14:55 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Sun, 29 Jun 2014 15:14:41 +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: 92.243.29.197 Cc: Peter Maydell , Christophe Lyon , Anthony Liguori Subject: [Qemu-devel] [PULL v2 01/13] 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.220.173 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 } };