Linux Container Development
 help / color / mirror / Atom feed
* [PATCH 0/6][RFC] user-cr: restart: Make task table portable
@ 2010-02-08 21:57 Matt Helsley
       [not found] ` <1265666243-29046-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Matt Helsley @ 2010-02-08 21:57 UTC (permalink / raw)
  To: Oren Laadan; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

This series modifies the task table entries to use indexes rather than
pointers to create the tree. This is one step that enables the same
table to be shared between multiple restart processes regardless of
whether they are 32 or 64-bit.

Further steps, not in this set, include:
	1. Mark bitness of each task in the table.
	2. Share the table contents.
		Probably via an fd passed during execve() then mmap()'ed
	3. Find/modify restart to do execve() at the right spot.

The patches:
	1/6 Make context global
	2/6 Replace children pointer with index
	3/6 Replace next_sib pointer with an index
	4/6 Replace prev_sib pointer with index
	5/6 Replace phantom pointer with index
	6/6 Replace creator pointer with index

Each patch converts one of the fields to an index while leaving the
others untouched. Should be bisect safe, but feel free to merge the
patches if you like.

(These are RFC since they aren't properly tested and don't actually
make restart do the 32/64-bit transitions but feel free to include
them if you like.)

Cheers,
	-Matt Helsley

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-02-10  2:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-08 21:57 [PATCH 0/6][RFC] user-cr: restart: Make task table portable Matt Helsley
     [not found] ` <1265666243-29046-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-02-08 21:57   ` [PATCH 1/6] [RFC] user-cr: restart: Make context global Matt Helsley
     [not found]     ` <ef85446244a744fd9c91cf06515f796ce833f01c.1265665676.git.matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-02-08 21:57       ` [PATCH 2/6] [RFC] user-cr: restart: Replace children pointer with index Matt Helsley
2010-02-08 21:57       ` [PATCH 3/6] [RFC] user-cr: restart: Replace next_sib pointer with an index Matt Helsley
2010-02-08 21:57       ` [PATCH 4/6] [RFC] user-cr: restart: Replace prev_sib pointer with index Matt Helsley
2010-02-08 21:57       ` [PATCH 5/6] [RFC] user-cr: restart: Replace phantom " Matt Helsley
2010-02-08 21:57       ` [PATCH 6/6] [RFC] user-cr: restart: Replace creator " Matt Helsley
2010-02-08 23:26   ` [PATCH 0/6][RFC] user-cr: restart: Make task table portable Oren Laadan
     [not found]     ` <4B709D90.6000605-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2010-02-09 23:22       ` Matt Helsley
     [not found]         ` <20100209232252.GK3714-52DBMbEzqgQ/wnmkkaCWp/UQ3DHhIser@public.gmane.org>
2010-02-10  0:24           ` Oren Laadan
     [not found]             ` <4B71FCBA.9060408-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2010-02-10  2:13               ` Matt Helsley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox