From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: Re: [PATCH 6/7] proc: Introduce the /proc//dump file Date: Sun, 17 Jul 2011 12:06:27 +0400 Message-ID: <20110717080627.GQ31407@sun> References: <4E204466.8010204@parallels.com> <4E204500.6040800@parallels.com> <20110716225709.GA25606@shutemov.name> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20110716225709.GA25606-oKw7cIdHH8eLwutG50LtGA@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: "Kirill A. Shutemov" Cc: Pavel Emelyanov , Glauber Costa , Linux Containers , Nathan Lynch , Tejun Heo , Serge Hallyn , Daniel Lezcano List-Id: containers.vger.kernel.org On Sun, Jul 17, 2011 at 01:57:09AM +0300, Kirill A. Shutemov wrote: > On Fri, Jul 15, 2011 at 05:47:44PM +0400, Pavel Emelyanov wrote: > > An image read from file contains task's registers and information > > about its VM. Later this image can be execve-ed causing recreation > > of the previously read task state. > > > > The file format is my own, very simple. Introduced to make the code > > as simple as possible. Better file format (if any) is to be discussed. > > I think file format should be per-binfmt, similar to core dump. So it will > be ELF with ELF binary. Core dumper code can be reused in some way. > Don't think so. We could push all data into PT_LOAD, still the restore procedure is different from how elf loader works so I don't want at all to change kernel's elf handler code (if I understand you right, that is what you propose?). In real we tried to isolate the changes we bring as much as possible. Cyrill