From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [RFC v14-rc2][PATCH 22/29] Restore anonymous- and file-mapped- shared memory Date: Thu, 2 Apr 2009 11:59:50 -0500 Message-ID: <20090402165950.GA9984@us.ibm.com> References: <1238477349-11029-1-git-send-email-orenl@cs.columbia.edu> <1238477349-11029-23-git-send-email-orenl@cs.columbia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1238477349-11029-23-git-send-email-orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Dave Hansen List-Id: containers.vger.kernel.org Quoting Oren Laadan (orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org): > The bulk of the work is in cr_read_vma(), which has been refactored: > the part that create the suitable 'struct file *' for the mapping is > now larger and moved to a separate function. What's left is to read > the VMA description, get the file pointer, create the mapping, and > proceed to read the contents in. > > Both anonymous shared VMAs that have been read earlier (as indicated > by a look up to objhash) and file-mapped shared VMAs are skipped. > Anonymous shared VMAs seen for the first time have their contents > read in directly to the backing inode, as indexed by the page numbers > (as opposed to virtual addresses). > > Changelog[v14]: > - Introduce patch > > Signed-off-by: Oren Laadan Acked-by: Serge Hallyn thanks, -serge