From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.123] helo=mx.sourceforge.net) by h25xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1MOe2m-0007HJ-C3 for ltp-list@lists.sourceforge.net; Wed, 08 Jul 2009 20:47:08 +0000 Received: from mail-bw0-f215.google.com ([209.85.218.215]) by 3b2kzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1MOe2i-00059p-Ft for ltp-list@lists.sourceforge.net; Wed, 08 Jul 2009 20:47:08 +0000 Received: by bwz11 with SMTP id 11so176312bwz.10 for ; Wed, 08 Jul 2009 13:47:03 -0700 (PDT) Message-ID: <4A54FFFE.10306@petalogix.com> Date: Wed, 08 Jul 2009 22:22:22 +0200 From: Michal Simek MIME-Version: 1.0 References: <4A54D14F.9090101@petalogix.com> <20090708.103520.193697491.davem@davemloft.net> <4A54DF6F.1010405@petalogix.com> <20090708.110624.104984745.davem@davemloft.net> In-Reply-To: <20090708.110624.104984745.davem@davemloft.net> Subject: Re: [LTP] mmap hw behavior Reply-To: michal.simek@petalogix.com List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: David Miller Cc: linux-arch@vger.kernel.org, ltp-list@lists.sourceforge.net, arnd@arndb.de, linux-kernel@vger.kernel.org, lethal@linux-sh.org, mingo@elte.hu David Miller wrote: > From: Michal Simek > Date: Wed, 08 Jul 2009 20:03:27 +0200 > > >> David Miller wrote: >> >>> From: Michal Simek >>> Date: Wed, 08 Jul 2009 19:03:11 +0200 >>> >>> >>> >>>> When I call mmap for that open file with pointer to calloc place >>>> (first parameter, + length zero) it should be one tlb invalidation >>>> for calloc and new tlb which connect open file. We check it and we >>>> don't have any tlb invalidation that's why I think that kernel do >>>> different thigs. Or is it there any copying? Or anything different? >>>> >>>> >>> There is no need to tlb flush the calloc area unless that memory area >>> is actually touched by the user application and thus the page is >>> faulted in. >>> >>> >> That calloc area is filled by any value (in that test). Is it mean that >> for this case when calloc area is touched >> there must be tlb invalidation + remapping? >> > > Yes, if the calloc area is written to by the application, there > should be a tlb flush when the mmap() overrides that virtual region > with a different mapping. > Can you please point me to any code which exactly do this? (for example file mm/mmap.c line from ... to ... ) Thanks, Michal -- Michal Simek, Ing. (M.Eng) PetaLogix - Linux Solutions for a Reconfigurable World w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list