lkml.org 
[lkml]   [2008]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[RFC][PATCH 4/4] introduce sys_checkpoint and sys_restore
    From
    Date

    From: Oren Laadan <orenl@cs.columbia.edu>

    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.

    First create a template for both syscalls: they take a file descriptor
    (for the image file) and flags as arguments. For sys_checkpoint the
    first argument identifies the target container; for sys_restart it will
    identify the checkpoint image.

    Signed-off-by: Oren Laadan <orenl@cs.columbia.edu>

    ---

    linux-2.6.git-dave/arch/x86/kernel/syscall_table_32.S | 2 ++
    linux-2.6.git-dave/include/asm-x86/unistd_32.h | 2 ++
    2 files changed, 4 insertions(+)

    diff -puN arch/x86/kernel/syscall_table_32.S~introduce_sys_checkpoint_and_sys_restore arch/x86/kernel/syscall_table_32.S
    --- linux-2.6.git/arch/x86/kernel/syscall_table_32.S~introduce_sys_checkpoint_and_sys_restore 2008-08-07 15:38:04.000000000 -0700
    +++ linux-2.6.git-dave/arch/x86/kernel/syscall_table_32.S 2008-08-07 15:38:04.000000000 -0700
    @@ -326,3 +326,5 @@ ENTRY(sys_call_table)
    .long sys_fallocate
    .long sys_timerfd_settime /* 325 */
    .long sys_timerfd_gettime
    + .long sys_checkpoint
    + .long sys_restart
    diff -puN include/asm-x86/unistd_32.h~introduce_sys_checkpoint_and_sys_restore include/asm-x86/unistd_32.h
    --- linux-2.6.git/include/asm-x86/unistd_32.h~introduce_sys_checkpoint_and_sys_restore 2008-08-07 15:38:04.000000000 -0700
    +++ linux-2.6.git-dave/include/asm-x86/unistd_32.h 2008-08-07 15:38:04.000000000 -0700
    @@ -332,6 +332,8 @@
    #define __NR_fallocate 324
    #define __NR_timerfd_settime 325
    #define __NR_timerfd_gettime 326
    +#define __NR_checkpoint 327
    +#define __NR_restart 328

    #ifdef __KERNEL__

    diff -puN Makefile~introduce_sys_checkpoint_and_sys_restore Makefile
    _

    \
     
     \ /
      Last update: 2008-08-08 00:45    [W:0.019 / U:92.192 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site