Linux Container Development
 help / color / mirror / Atom feed
From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
Cc: Containers
	<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
	clg-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org
Subject: Re: [RFC][PATCH][lxc]: Add --with-usercr configure option
Date: Thu, 25 Mar 2010 10:28:27 -0700	[thread overview]
Message-ID: <20100325172827.GC5847@us.ibm.com> (raw)
In-Reply-To: <4BAB739B.9090601-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>

Daniel Lezcano [dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org] wrote:
> Sukadev Bhattiprolu wrote:
>> Pls let me know if this will work. Will address your other comments
>> and repost entire patchset.
>>
>> ---
>> From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
>> Date: Wed, 24 Mar 2010 17:26:44 -0700
>> Subject: [PATCH 1/1] Add --with-usercr configure option
>>
>> Add a configure option, --with-usercr=dir which would allow linking
>> with external (i.e USERCR) implementation  of checkpoint/restart.
>>
>> For now, USERCR "publishes" a app-checkpoint.h, checkpoint.o and
>> restart.o files which implement the functions app_checkpoint() and
>> app_restart().
>>
>> Usage:
>> 	$ ./autogen.sh
>>
>> 	$ ./configure --help |grep usercr
>> 	--with-usercr=dir     use the Checkpoint/Restart implementation in 'dir'
>
> Ok, let's call it : --with-cr

Ok, or how about --with-libcr given that it will eventually be a library.

>
>> 	$ ls /home/guest/user-cr/
>> 	app-checkpoint.h    checkpoint.o    restart.o
>>
>> 	$ ./configure --with-usercr=/home/guest/user-cr
>>
>> TODO:
>> 	If names of interfaces in USERCR change, we may want to rename
>> 	the config option too ?
>>
>> 	Can we remove the src/lxc/{checkpoint.o,restart.o} files from
>> 	liblxc.so and lxc-checkpoint/lxc-restart directly with them ?
>> 	That way, the USERCR interfaces/object files don't end up in
>> 	liblxc.so.
>>
>> 	USERCR_CFLAGS are only needed for src/lxc/{checkpoint.c,restart.c}
>> 	but not sure if there is an easy way to define autoconf CFLAGS
>> 	just for those two files.
>
> Hum, no. It would be preferable to integrate them in lxc for now (as  
> experimental code) and later create a glue between lxc and usercr, so  
> usercr interfaces would be callable as a plugin of lxc.
>
> The --with-cr will remains but specifying a CR library. The lxc  
> checkpoint and restart code will then dlopen this library and use the  
> checkpoint / restart functions of this library.
>
> If no library is specified, the lxc-checkpoint / lxc-restart will return  
> ENOSYS.
>
> That will ensure the CR specific code stays in a separate library and  
> will keep things opened to take into account other CR solutions like 
> blcr.
>
> But until we reach this point, we should integrate everything hardcoded  
> in the lxc library in order to let the plugin API drawing to appear in  
> the integration big picture.

Ok. Sounds good. I will leave the USERCR interfaces in liblxc.so for now.

  parent reply	other threads:[~2010-03-25 17:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25  1:05 [RFC][PATCH][lxc]: Add --with-usercr configure option Sukadev Bhattiprolu
     [not found] ` <20100325010524.GA7385-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-03-25  8:19   ` Michel Normand
2010-03-25 17:20     ` Sukadev Bhattiprolu
2010-03-25 14:30   ` Daniel Lezcano
     [not found]     ` <4BAB739B.9090601-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2010-03-25 17:28       ` Sukadev Bhattiprolu [this message]
     [not found]         ` <20100325172827.GC5847-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-03-25 17:59           ` Daniel Lezcano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100325172827.GC5847@us.ibm.com \
    --to=sukadev-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
    --cc=clg-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox