[Devel] Re: [PATCH 2/2] Add support for in-kernel process creation during restart

2008-11-26 Thread Andrey Mirkin
On Tuesday 25 November 2008 23:17 Oren Laadan wrote: > Hi, > > Andrey Mirkin wrote: > > All work (process tree creation and process state restore) now can be > > done in kernel. > > > > Task structure in image file is extended with 2 fields to make in-kern

[Devel] Re: [PATCH 0/2] In-kernel process restart

2008-11-26 Thread Andrey Mirkin
On Tuesday 25 November 2008 23:02 Oren Laadan wrote: > Andrey Mirkin wrote: > > These patchset introduces OpenVZ kernel based restart procedure on top of > > Oren's checkpoint/restart patchset v9. > > > > For restarting a set of processes one will need to call sys_

[Devel] Re: [PATCH 2/2] Add support for in-kernel process creation during restart

2008-11-25 Thread Andrey Mirkin
On Tuesday 25 November 2008 03:45 Alexey Dobriyan wrote: > On Mon, Nov 24, 2008 at 06:39:35PM +0300, Andrey Mirkin wrote: > > +static int cr_rstr_task_struct(struct cr_ctx *ctx, struct cr_hdr_task > > *ht) +{ > > + struct task_struct *t = current; > > + char *buf

[Devel] Re: [PATCH 1/2] Add flags for user-space and in-kernel process creation

2008-11-25 Thread Andrey Mirkin
On Monday 24 November 2008 19:02 Louis Rilling wrote: > On 24/11/08 18:39 +0300, Andrey Mirkin wrote: > > Introduce 2 flags for user-space and in-kernel process creation during > > restart procedure. > > Also a stub function for in-kernel process restart is introduced. > &g

[Devel] [PATCH 1/2] Add flags for user-space and in-kernel process creation

2008-11-24 Thread Andrey Mirkin
Introduce 2 flags for user-space and in-kernel process creation during restart procedure. Also a stub function for in-kernel process restart is introduced. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- checkpoint/Makefile|2 +- checkpoint/restart.c

[Devel] [PATCH 0/2] In-kernel process restart

2008-11-24 Thread Andrey Mirkin
These patchset introduces OpenVZ kernel based restart procedure on top of Oren's checkpoint/restart patchset v9. For restarting a set of processes one will need to call sys_restart() once with new flag CR_CTX_RSTR_IN_KERNEL. All work will be done in kernel in this case. Small changes to image for

[Devel] [PATCH 2/2] Add support for in-kernel process creation during restart

2008-11-24 Thread Andrey Mirkin
All work (process tree creation and process state restore) now can be done in kernel. Task structure in image file is extended with 2 fields to make in-kernel process creation more easy. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- checkpoint/checkpoint.c| 17 chec

Re: [Devel] [RFC v8][PATCH 0/12] Kernel based checkpoint/restart

2008-10-30 Thread Andrey Mirkin
Oren, Can you please check your git server. I can't update to the latest version: # git-pull fatal: The remote end hung up unexpectedly git-clone exits with the same error. Andrey On Thursday 30 October 2008 16:51 Oren Laadan wrote: > Basic checkpoint-restart [C/R]: v8 adds support for "exter

Re: [Devel] Re: [PATCH 0/9] OpenVZ kernel based checkpointing/restart

2008-10-29 Thread Andrey Mirkin
On Monday 27 October 2008 17:39 Oren Laadan wrote: > Andrey Mirkin wrote: > > On Monday 20 October 2008 19:55 Dave Hansen wrote: > >> On Mon, 2008-10-20 at 16:14 +0400, Andrey Mirkin wrote: > >>> Right now my patchset (v2) provides an ability to checkpoint and >

Re: [Devel] Re: [PATCH 10/10] Add support for multiple processes

2008-10-29 Thread Andrey Mirkin
On Monday 27 October 2008 18:58 Oren Laadan wrote: > Andrey Mirkin wrote: > > The whole tree of processes can be checkpointed and restarted now. > > Shared objects are not supported yet. > > > > Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> > > -

Re: [Devel] Re: [PATCH 03/10] Introduce context structure needed during checkpointing/restart

2008-10-29 Thread Andrey Mirkin
On Monday 20 October 2008 21:02 Dave Hansen wrote: > On Sat, 2008-10-18 at 03:11 +0400, Andrey Mirkin wrote: > > +typedef struct cpt_context > > +{ > > + pid_t pid;/* should be changed to ctid later */ > > + int ctx_id; /* c

Re: [Devel] Re: [PATCH 08/10] Introduce functions to restart a process

2008-10-29 Thread Andrey Mirkin
On Sunday 26 October 2008 01:10 Oren Laadan wrote: > Andrey Mirkin wrote: > > On Thursday 23 October 2008 17:57 Dave Hansen wrote: > >> On Thu, 2008-10-23 at 13:00 +0400, Andrey Mirkin wrote: > >>>>>>> It is not related to the freezer code actually. &g

Re: [Devel] Re: [PATCH 0/9] OpenVZ kernel based checkpointing/restart

2008-10-27 Thread Andrey Mirkin
On Monday 20 October 2008 20:37 Daniel Lezcano wrote: > Oren Laadan wrote: > > Daniel Lezcano wrote: > >> Louis Rilling wrote: > >>> On Fri, Oct 17, 2008 at 04:33:03PM -0700, Dave Hansen wrote: > >>>> On Wed, 2008-09-03 at 14:57 +0400, Andrey Mirkin w

Re: [Devel] Re: [PATCH 0/9] OpenVZ kernel based checkpointing/restart

2008-10-27 Thread Andrey Mirkin
On Monday 20 October 2008 21:17 Oren Laadan wrote: > Andrey Mirkin wrote: > > On Saturday 18 October 2008 03:33 Dave Hansen wrote: > >> On Wed, 2008-09-03 at 14:57 +0400, Andrey Mirkin wrote: > >>> This patchset introduces kernel based checkpointing/restart as it

Re: [Devel] Re: [PATCH 0/9] OpenVZ kernel based checkpointing/restart

2008-10-27 Thread Andrey Mirkin
On Monday 20 October 2008 19:55 Dave Hansen wrote: > On Mon, 2008-10-20 at 16:14 +0400, Andrey Mirkin wrote: > > Right now my patchset (v2) provides an ability to checkpoint and restart > > a group of processes. The process of checkpointing and restart can be > > initiated

Re: [Devel] Re: [PATCH 05/10] Introduce function to dump process

2008-10-23 Thread Andrey Mirkin
On Monday 20 October 2008 21:48 Serge E. Hallyn wrote: > Quoting Andrey Mirkin ([EMAIL PROTECTED]): > > + t->cpt_uid = tsk->uid; > > + t->cpt_euid = tsk->euid; > > + t->cpt_suid = tsk->suid; > > + t->cpt_fsuid = tsk->fsuid; > > +

Re: [Devel] Re: [PATCH 05/10] Introduce function to dump process

2008-10-23 Thread Andrey Mirkin
On Monday 20 October 2008 15:02 Louis Rilling wrote: > Hi, > > On Sat, Oct 18, 2008 at 03:11:33AM +0400, Andrey Mirkin wrote: > > Functions to dump task struct, fpu state and registers are added. > > All IDs are saved from the POV of process (container) namespace. > &

Re: [Devel] Re: [PATCH 06/10] Introduce functions to dump mm

2008-10-23 Thread Andrey Mirkin
On Thursday 23 October 2008 17:51 Dave Hansen wrote: > On Thu, 2008-10-23 at 12:43 +0400, Andrey Mirkin wrote: > > > > +#ifdef CONFIG_X86 > > > > + if (pmd_huge(*pmd)) { > > > > + eprintk("page_huge\n&quo

Re: [Devel] Re: [PATCH 08/10] Introduce functions to restart a process

2008-10-23 Thread Andrey Mirkin
On Thursday 23 October 2008 17:49 Dave Hansen wrote: > On Thu, 2008-10-23 at 13:54 +0400, Andrey Mirkin wrote: > > We are putting special structure on stack, which is used at the very end > > of the whole restart procedure to restore complex states (ptrace is one > > of suc

Re: [Devel] Re: [PATCH 08/10] Introduce functions to restart a process

2008-10-23 Thread Andrey Mirkin
On Thursday 23 October 2008 17:57 Dave Hansen wrote: > On Thu, 2008-10-23 at 13:00 +0400, Andrey Mirkin wrote: > > > >>> It is not related to the freezer code actually. > > > >>> That is needed to restart syscalls. Right now I don't have a code >

Re: [Devel] Re: [PATCH 08/10] Introduce functions to restart a process

2008-10-23 Thread Andrey Mirkin
On Monday 20 October 2008 17:25 Louis Rilling wrote: > On Sat, Oct 18, 2008 at 03:11:36AM +0400, Andrey Mirkin wrote: > > Functions to restart process, restore its state, fpu and registers are > > added. > > [...] > > > diff --git a/checkpoint/rst_process.c b/checkpo

Re: [Devel] Re: [PATCH 08/10] Introduce functions to restart a process

2008-10-23 Thread Andrey Mirkin
On Wednesday 22 October 2008 16:47 Cedric Le Goater wrote: > >>> +ENTRY(i386_ret_from_resume) > >>> + CFI_STARTPROC > >>> + pushl %eax > >>> + CFI_ADJUST_CFA_OFFSET 4 > >>> + call schedule_tail > >>> + GET_THREAD_INFO(%ebp) > >>> + popl %eax > >>> + CFI_ADJUST_CFA_OFFSET -4 > >>> + movl (%esp), %ea

Re: [Devel] Re: [PATCH 08/10] Introduce functions to restart a process

2008-10-23 Thread Andrey Mirkin
On Wednesday 22 October 2008 19:25 Oren Laadan wrote: > Andrey Mirkin wrote: > > On Wednesday 22 October 2008 13:25 Louis Rilling wrote: > >> On Wed, Oct 22, 2008 at 12:49:54PM +0400, Andrey Mirkin wrote: > >>> On Monday 20 October 2008 13:23 Cedric Le Goa

Re: [Devel] Re: [PATCH 08/10] Introduce functions to restart a process

2008-10-23 Thread Andrey Mirkin
On Wednesday 22 October 2008 14:46 Louis Rilling wrote: > On Wed, Oct 22, 2008 at 02:12:12PM +0400, Andrey Mirkin wrote: > > On Wednesday 22 October 2008 13:25 Louis Rilling wrote: > > > On Wed, Oct 22, 2008 at 12:49:54PM +0400, Andrey Mirkin wrote: > > > > On Monda

Re: [Devel] Re: [PATCH 06/10] Introduce functions to dump mm

2008-10-23 Thread Andrey Mirkin
On Monday 20 October 2008 21:21 Dave Hansen wrote: > On Sat, 2008-10-18 at 03:11 +0400, Andrey Mirkin wrote: > > +static void page_get_desc(struct vm_area_struct *vma, unsigned long > > addr, + struct page_desc *pdesc, cpt_context_t * > > ctx)

Re: [Devel] Re: [PATCH 08/10] Introduce functions to restart a process

2008-10-22 Thread Andrey Mirkin
On Wednesday 22 October 2008 13:25 Louis Rilling wrote: > On Wed, Oct 22, 2008 at 12:49:54PM +0400, Andrey Mirkin wrote: > > On Monday 20 October 2008 13:23 Cedric Le Goater wrote: > > > Hello Andrey ! > > > > > > > diff --git a/arch/x86/kernel/entry_32.S b/a

Re: [Devel] Re: [PATCH 06/10] Introduce functions to dump mm

2008-10-22 Thread Andrey Mirkin
On Monday 20 October 2008 16:25 Louis Rilling wrote: > On Sat, Oct 18, 2008 at 03:11:34AM +0400, Andrey Mirkin wrote: > > Functions to dump mm struct, VMAs and mm context are added. > > Again, a few little comments. > > [...] > > > diff --git a/checkpoint/cpt_mm.c

Re: [Devel] Re: [PATCH 08/10] Introduce functions to restart a process

2008-10-22 Thread Andrey Mirkin
On Monday 20 October 2008 13:23 Cedric Le Goater wrote: > Hello Andrey ! > > > diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S > > index 109792b..a4848a3 100644 > > --- a/arch/x86/kernel/entry_32.S > > +++ b/arch/x86/kernel/entry_32.S > > @@ -225,6 +225,7 @@ ENTRY(ret_from_fork

Re: [Devel] Re: [PATCH 0/9] OpenVZ kernel based checkpointing/restart

2008-10-20 Thread Andrey Mirkin
On Saturday 18 October 2008 03:33 Dave Hansen wrote: > On Wed, 2008-09-03 at 14:57 +0400, Andrey Mirkin wrote: > > This patchset introduces kernel based checkpointing/restart as it is > > implemented in OpenVZ project. This patchset has limited functionality > > and are able

[Devel] [PATCH 09/10] Introduce functions to restore mm

2008-10-17 Thread Andrey Mirkin
Functions to restore mm, VMAs and mm context are added. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- checkpoint/Makefile |2 +- checkpoint/checkpoint.h |1 + checkpoint/cpt_image.h |5 + checkpoint/rst_mm.c

[Devel] [PATCH 10/10] Add support for multiple processes

2008-10-17 Thread Andrey Mirkin
The whole tree of processes can be checkpointed and restarted now. Shared objects are not supported yet. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- checkpoint/cpt_image.h |2 + checkpoint/cpt_process.c | 24 + checkpoint/rst_process.c

[Devel] [PATCH 01/10] Introduce trivial sys_checkpoint and sys_restore system calls

2008-10-17 Thread Andrey Mirkin
takes as the first argument a container ID (right now it will not be used). Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- Makefile |2 +- arch/x86/kernel/syscall_table_32.S |2 + checkpoint/Makefile|1 + checkpoint

[Devel] [PATCH 06/10] Introduce functions to dump mm

2008-10-17 Thread Andrey Mirkin
Functions to dump mm struct, VMAs and mm context are added. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- arch/x86/mm/hugetlbpage.c |2 + checkpoint/Makefile |2 +- checkpoint/checkpoint.h |1 + checkpoint/cpt_image.h| 61 +++ checkpoint/cpt_mm.c

[Devel] [PATCH 03/10] Introduce context structure needed during checkpointing/restart

2008-10-17 Thread Andrey Mirkin
Add functions for context allocation/destroy. Introduce functions to read/write image. Introduce image header and object header. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- checkpoint/checkpoint.h | 40 +++ checkpoint/cpt_image.h

[Devel] [PATCH 07/10] Introduce function for restarting a container

2008-10-17 Thread Andrey Mirkin
Actually, right now this function will restart only one process. Function to read head of dump file is introduced. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- checkpoint/Makefile |2 +- checkpoint/checkpoint.h |1 + checkpoint/restart.c

[Devel] [PATCH 08/10] Introduce functions to restart a process

2008-10-17 Thread Andrey Mirkin
Functions to restart process, restore its state, fpu and registers are added. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- arch/x86/kernel/entry_32.S | 21 +++ arch/x86/kernel/process_32.c |3 + checkpoint/Makefile |3 +- checkpoint/checkpoint.h

[Devel] [PATCH 04/10] Introduce container dump function

2008-10-17 Thread Andrey Mirkin
Actually right now we are going to dump only one process. Function for dumping head of image file are added. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- checkpoint/Makefile |2 +- checkpoint/checkpoint.c | 79 +++ chec

[Devel] [PATCH 05/10] Introduce function to dump process

2008-10-17 Thread Andrey Mirkin
Functions to dump task struct, fpu state and registers are added. All IDs are saved from the POV of process (container) namespace. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- checkpoint/Makefile |2 +- checkpoint/checkpoint.c |2 +- checkpoint/checkpoint.h

[Devel] [PATCH 02/10] Make checkpoint/restart functionality modular

2008-10-17 Thread Andrey Mirkin
A config option CONFIG_CHECKPOINT is introduced. New structure cpt_operations is introduced to store pointers to checkpoint/restart functions from module. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- checkpoint/Kconfig |7 ++ checkpoint/Makefile |4 +++ chec

[Devel] [PATCH 0/10] OpenVZ kernel based checkpointing/restart (v2)

2008-10-17 Thread Andrey Mirkin
These patchset introduces kernel based checkpointing/restart as it is implemented in OpenVZ project. This version (v2) supports multiple processes with simple private memory and open files (regular files). Todo: - Create processes with the same PID during restart - Add support for x86-64 - Add

Re: [Devel] Re: [PATCH 1/9] Introduce trivial sys_checkpoint and sys_restore system calls

2008-09-08 Thread Andrey Mirkin
On Wednesday 03 September 2008 15:44 Cedric Le Goater wrote: > Andrey Mirkin wrote: > > Right now they just return -ENOSYS. Later they will provide functionality > > to checkpoint and restart a container. > > > > Both syscalls take as arguments a file descriptor and fla

Re: [Devel] Re: [RFC v3][PATCH 1/9] Create syscalls: sys_checkpoint, sys_restart

2008-09-08 Thread Andrey Mirkin
On Thursday 04 September 2008 18:42 Serge E. Hallyn wrote: > Quoting Oren Laadan ([EMAIL PROTECTED]): > > Create trivial sys_checkpoint and sys_restore system calls. They will > > enable to checkpoint and restart an entire container, to and from a > > checkpoint image file descriptor. > > > > The s

Re: [Devel] Re: [RFC v2][PATCH 4/9] Memory management - dump state

2008-09-08 Thread Andrey Mirkin
On Sunday 31 August 2008 21:34 Cedric Le Goater wrote: > Oren Laadan wrote: > > Dave, Serge: > > > > I'm currently away so I must keep this short. I think we have so far > > more discussion than an actual problem. I'm happy to coordinate with > > every interested party to eventually see this work g

[Devel] Re: [PATCH 2/9] Make checkpoint/restart functionality modular

2008-09-03 Thread Andrey Mirkin
On Wednesday 03 September 2008 18:27 Serge E. Hallyn wrote: > Quoting Andrey Mirkin ([EMAIL PROTECTED]): > > A config option CONFIG_CHECKPOINT is introduced. > > New structure cpt_operations is introduced to store pointers to > > checkpoint/restart functions from module. &g

[Devel] Re: [PATCH 0/9] OpenVZ kernel based checkpointing/restart

2008-09-03 Thread Andrey Mirkin
On Wednesday 03 September 2008 18:26 Cedric Le Goater wrote: > > Forgot a global comment: you will probably get the same (rather pointless > > for a proof of concept, IMHO) requests as Oren got, to > > 1) improve coding style: > > a) especially avoid error handling like: > > err = foo(); > >

[Devel] Re: [PATCH 4/9] Introduce container dump function

2008-09-03 Thread Andrey Mirkin
On Wednesday 03 September 2008 18:23 Serge E. Hallyn wrote: > Quoting Andrey Mirkin ([EMAIL PROTECTED]): > > Actually right now we are going to dump only one process. > > Function for dumping head of image file are added. > > > > Signed-off-by: Andrey Mirkin <[EMAI

[Devel] Re: [PATCH 3/9] Introduce context structure needed during checkpointing/restart

2008-09-03 Thread Andrey Mirkin
On Wednesday 03 September 2008 18:13 Cedric Le Goater wrote: > > +void context_release(struct cpt_context *ctx) > > +{ > > + ctx->ctx_state = CPT_CTX_ERROR; > > + > > + if (ctx->file) > > + fput(ctx->file); > > + kfree(ctx); > > +} > > + > > +static void context_put(struct cpt_conte

[Devel] Re: [PATCH 0/9] OpenVZ kernel based checkpointing/restart

2008-09-03 Thread Andrey Mirkin
On Wednesday 03 September 2008 18:06 Louis Rilling wrote: > On Wed, Sep 03, 2008 at 03:49:51PM +0200, Louis Rilling wrote: > > On Wed, Sep 03, 2008 at 02:57:47PM +0400, Andrey Mirkin wrote: > > > This patchset introduces kernel based checkpointing/restart as it is > >

[Devel] Re: [PATCH 3/9] Introduce context structure needed during checkpointing/restart

2008-09-03 Thread Andrey Mirkin
On Wednesday 03 September 2008 16:29 Matthieu Fertré wrote: > Andrey Mirkin a écrit : > > Add functions for context allocation/destroy. > > Introduce functions to read/write image. > > Introduce image header and object header. > > > > Signed-off-by

Re: [Devel] Re: [PATCH 0/9] OpenVZ kernel based checkpointing/restart

2008-09-03 Thread Andrey Mirkin
On Wednesday 03 September 2008 16:28 Cedric Le Goater wrote: > Andrey Mirkin wrote: > > This patchset introduces kernel based checkpointing/restart as it is > > implemented in OpenVZ project. This patchset has limited functionality > > and are able to checkpoint/restar

[Devel] Re: [PATCH 3/9] Introduce context structure needed during checkpointing/restart

2008-09-03 Thread Andrey Mirkin
On Wednesday 03 September 2008 17:56 Louis Rilling wrote: > On Wed, Sep 03, 2008 at 02:57:50PM +0400, Andrey Mirkin wrote: > > Add functions for context allocation/destroy. > > Introduce functions to read/write image. > > Introduce image header and object header. > > [

Re: [Devel] Re: [RFC v2][PATCH 4/9] Memory management - dump state

2008-09-03 Thread Andrey Mirkin
On Wednesday 03 September 2008 16:15 Cedric Le Goater wrote: > Andrey Mirkin wrote: > > On Sunday 31 August 2008 21:34 Cedric Le Goater wrote: > >> Oren Laadan wrote: > >>> Dave, Serge: > >>> > >>> I'm currently away so I must keep this

[Devel] [PATCH 4/9] Introduce container dump function

2008-09-03 Thread Andrey Mirkin
Actually right now we are going to dump only one process. Function for dumping head of image file are added. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- cpt/Makefile |2 +- cpt/checkpoint.c | 74 ++ cpt/cpt.h

Re: [Devel] [RFC][PATCH 0/2] CR: save/restore a single, simple task

2008-09-03 Thread Andrey Mirkin
On Friday 22 August 2008 01:37 Serge E. Hallyn wrote: > Quoting Andrey Mirkin ([EMAIL PROTECTED]): > > On Friday 01 August 2008 01:28 Serge E. Hallyn wrote: > > > Quoting Andrey Mirkin ([EMAIL PROTECTED]): > > > > Hello Oren, > > > > > > > >

[Devel] [PATCH 6/9] Introduce functions to dump mm

2008-09-03 Thread Andrey Mirkin
Functions to dump mm struct, VMAs and mm context are added. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- arch/x86/mm/hugetlbpage.c |2 + cpt/Makefile |2 +- cpt/cpt.h |1 + cpt/cpt_image.h | 61 +++ cpt/cpt_mm.c

[Devel] [PATCH 5/9] Introduce function to dump process

2008-09-03 Thread Andrey Mirkin
Functions to dump task struct, fpu state and registers are added. All IDs are saved from the POV of process (container) namespace. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- cpt/Makefile |2 +- cpt/checkpoint.c |2 +- cpt/cpt.h |1 + cpt/cpt_image.h

[Devel] [PATCH 7/9] Introduce function for restarting a container

2008-09-03 Thread Andrey Mirkin
Actually, right now this function will restart only one process. Function to read head of dump file is introduced. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- cpt/Makefile |2 +- cpt/cpt.h |1 + cpt/restart.c

[Devel] [PATCH 8/9] Introduce functions to restart a process

2008-09-03 Thread Andrey Mirkin
Functions to restart process, restore its state, fpu and registers are added. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- arch/x86/kernel/entry_32.S | 21 +++ arch/x86/kernel/process_32.c |3 + cpt/Makefile |3 +- cpt/cpt.h|2

[Devel] [PATCH 2/9] Make checkpoint/restart functionality modular

2008-09-03 Thread Andrey Mirkin
A config option CONFIG_CHECKPOINT is introduced. New structure cpt_operations is introduced to store pointers to checkpoint/restart functions from module. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- cpt/Kconfig|7 +++ cpt/Makefile |4 cpt/cpt.h

[Devel] [PATCH 3/9] Introduce context structure needed during checkpointing/restart

2008-09-03 Thread Andrey Mirkin
Add functions for context allocation/destroy. Introduce functions to read/write image. Introduce image header and object header. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- cpt/cpt.h | 37 cpt/cpt_image.h | 63 +++ cpt

[Devel] [PATCH 9/9] Introduce functions to restore mm

2008-09-03 Thread Andrey Mirkin
Functions to restore mm, VMAs and mm context are added. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- cpt/Makefile |2 +- cpt/cpt.h |1 + cpt/cpt_image.h |5 + cpt/rst_mm.c | 320 + cpt/rst_pro

[Devel] [PATCH 0/9] OpenVZ kernel based checkpointing/restart

2008-09-03 Thread Andrey Mirkin
This patchset introduces kernel based checkpointing/restart as it is implemented in OpenVZ project. This patchset has limited functionality and are able to checkpoint/restart only single process. Recently Oren Laaden sent another kernel based implementation of checkpoint/restart. The main differenc

[Devel] [PATCH 1/9] Introduce trivial sys_checkpoint and sys_restore system calls

2008-09-03 Thread Andrey Mirkin
takes as the first argument a container ID (right now it will not be used). Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> --- Makefile |2 +- arch/x86/kernel/syscall_table_32.S |2 + cpt/Makefile |1 + cpt

Re: [Devel] [RFC][PATCH 0/2] CR: save/restore a single, simple task

2008-07-31 Thread Andrey Mirkin
On Friday 01 August 2008 01:28 Serge E. Hallyn wrote: > Quoting Andrey Mirkin ([EMAIL PROTECTED]): > > Hello Oren, > > > > That is great, that you have proposed your version of > > checkpointing/restart. In a few days I will send a patchset with OpenVZ > > chec

Re: [Devel] [RFC][PATCH 0/2] CR: save/restore a single, simple task

2008-07-31 Thread Andrey Mirkin
Hello Oren, That is great, that you have proposed your version of checkpointing/restart. In a few days I will send a patchset with OpenVZ checkpointing/restart. So, we will be able to compare our approaches and take the best parts from both. Regards, Andrey On Wednesday 30 July 2008 07:24 Oren

[Devel] [PATCH] change inotifyfs magic as the same magic is used for futexfs (v2)

2007-09-24 Thread Andrey Mirkin
From: Andrey Mirkin <[EMAIL PROTECTED]> Right now futexfs and inotifyfs have one magic 0xBAD1DEA, that looks a little bit confusing. Use 0xBAD1DEA as magic for futexfs and 0x2BAD1DEA as magic for inotifyfs. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> fs/inotify_user.

[Devel] [PATCH] change inotifyfs magic as the same magic is used for futexfs

2007-09-21 Thread Andrey Mirkin
From: Andrey Mirkin <[EMAIL PROTECTED]> Right now futexfs and inotifyfs have one magic 0xBAD1DEA, that looks a little bit confusing. Use 0xBAD1DEA as magic for futexfs and 0x2BAD1DEA as magic for inotifyfs. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> diff --git a/fs/inot

[Devel] [PATCH] return correct error code from child_rip in x86_64 entry.S

2007-09-20 Thread Andrey Mirkin
From: Andrey Mirkin <[EMAIL PROTECTED]> Right now register edi is just cleared before calling do_exit. That is wrong because correct return value will be ignored. Value from rax should be copied to rdi instead of clearing edi. Signed-off-by: Andrey Mirkin <[EMAIL PROTECTED]> -