All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: kernel based checkpoint/restart: about X windows application checkpoint and restart support.
@ 2009-10-28  8:47 Matt Helsley
       [not found] ` <20091028084717.GO31446-52DBMbEzqgQ/wnmkkaCWp/UQ3DHhIser@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Helsley @ 2009-10-28  8:47 UTC (permalink / raw)
  To: Will Huang; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

On Wed, Oct 28, 2009 at 10:51:32AM +0800, Will Huang wrote:
> Dear All,
> 
>          Did the Kernel based checkpoint/restart patch support X windows
> application such as firefox?

No, and I think it may be a long time before that happens.

(Disclaimer: I haven't even tried to see what part of checkpointing
X breaks first. I suspect it'd be the open device files...)

The display and input device hardware presents a serious challenge for 
one thing. They may not be available during restart if it occurs
on a different machine -- or they may be entirely different hardware. 

Perhaps checkpoint/restart of programs with these devices open should
"simulate" hot-[un]plug. Checkpoint could save enough information to make
the kernel generate the necessary uevents. At restart the file
descriptors for those devices are never opened and syscalls on them will
return errno==EBADF. Next we'd need to send uevents for the
"new-but-not-new" devices. There's a "new-but-not-new" uevent pathway in
the kernel used during boot -- perhaps there's some way to reuse that.
Lastly, we send the unplug uevents to get X to drop its use of the old
devices -- send those last so X always thinks there's hardware.

That's one way it _could_ be done. Others might rely on device
"virtualization" -- writing pseudo-device code (CUSE?).

X also has its own session support. As far as I know how that could
work with kernel-based checkpoint/restart hasn't been discussed yet.

Of course this is all off the top of my head. Others are welcome to
make considerate use of cluebats to inform me of any misconceptions I
may have.

Cheers,
	-Matt Helsley

^ permalink raw reply	[flat|nested] 6+ messages in thread
* kernel based checkpoint/restart: about X windows application checkpoint and restart support.
@ 2009-10-28  2:51 Will Huang
  0 siblings, 0 replies; 6+ messages in thread
From: Will Huang @ 2009-10-28  2:51 UTC (permalink / raw)
  To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Dear All,

         Did the Kernel based checkpoint/restart patch support X windows
application such as firefox?

 

Yours sincerely,

Will Huang,

DeviceVM, Inc. 

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

end of thread, other threads:[~2009-10-29  1:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28  8:47 kernel based checkpoint/restart: about X windows application checkpoint and restart support Matt Helsley
     [not found] ` <20091028084717.GO31446-52DBMbEzqgQ/wnmkkaCWp/UQ3DHhIser@public.gmane.org>
2009-10-28 15:02   ` Oren Laadan
     [not found]     ` <4AE85D13.9030108-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-10-28 16:12       ` Matt Helsley
     [not found]         ` <20091028161219.GQ31446-52DBMbEzqgQ/wnmkkaCWp/UQ3DHhIser@public.gmane.org>
2009-10-28 16:18           ` Oren Laadan
     [not found]             ` <4AE86EC9.7040605-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-10-29  1:30               ` Will Huang
  -- strict thread matches above, loose matches on Subject: below --
2009-10-28  2:51 Will Huang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.