From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754659AbYICNEc (ORCPT ); Wed, 3 Sep 2008 09:04:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751825AbYICNEZ (ORCPT ); Wed, 3 Sep 2008 09:04:25 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:40369 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751528AbYICNEY (ORCPT ); Wed, 3 Sep 2008 09:04:24 -0400 From: Andrey Mirkin To: devel@openvz.org Subject: Re: [Devel] Re: [PATCH 1/9] Introduce trivial sys_checkpoint and sys_restore =?iso-8859-1?q?system=09calls?= Date: Wed, 3 Sep 2008 17:05:42 +0400 User-Agent: KMail/1.8.2 Cc: Cedric Le Goater , Andrey Mirkin , containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <1220439476-16465-1-git-send-email-major@openvz.org> <1220439476-16465-2-git-send-email-major@openvz.org> <48BE7885.3070609@fr.ibm.com> In-Reply-To: <48BE7885.3070609@fr.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809031705.43773.amirkin@parallels.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 flags. > > Also sys_checkpoint take as the first argument a PID of container's init > > (later it will be container ID); sys_restart takes as the first argument > > a container ID (right now it will not be used). > > > > Signed-off-by: Andrey Mirkin > > --- > > Makefile | 2 +- > > arch/x86/kernel/syscall_table_32.S | 2 + > > cpt/Makefile | 1 + > > cpt/sys_core.c | 38 > > ++++++++++++++++++++++++++++++++++++ include/asm-x86/unistd_32.h | > > 2 + > > 5 files changed, 44 insertions(+), 1 deletions(-) > > create mode 100644 cpt/Makefile > > create mode 100644 cpt/sys_core.c > > > > diff --git a/Makefile b/Makefile > > index ea413fa..1dee5c0 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -619,7 +619,7 @@ export mod_strip_cmd > > > > > > ifeq ($(KBUILD_EXTMOD),) > > -core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ > > +core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ cpt/ > > > > vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ > > $(core-y) $(core-m) $(drivers-y) $(drivers-m) \ > > diff --git a/arch/x86/kernel/syscall_table_32.S > > b/arch/x86/kernel/syscall_table_32.S index fd9d4f4..4a0d7fb 100644 > > --- a/arch/x86/kernel/syscall_table_32.S > > +++ b/arch/x86/kernel/syscall_table_32.S > > @@ -333,3 +333,5 @@ ENTRY(sys_call_table) > > .long sys_pipe2 > > .long sys_inotify_init1 > > .long sys_hijack > > + .long sys_checkpoint > > + .long sys_restart /* 335 */ > > this patchset is based on top of : > > git://git.kernel.org/pub/scm/linux/kernel/git/daveh/linux-2.6-lxc.git > > right ? Yes, it is based on Dave's git tree. Regards, Andrey