Re: [PATCH -mm 2/2] Hibernation: Arbitrary boot kernel support on x86_64

Rafael J. Wysocki
2007-08-25T19:51:53Z

On Saturday, 25 August 2007 20:32, david@lang.hm wrote:
> On Sat, 25 Aug 2007, Rafael J. Wysocki wrote:
>
> > On Friday, 24 August 2007 22:46, Pavel Machek wrote:
> >> Hi!
> >>
> >>> From: Rafael J. Wysocki <rjw@sisk.pl>
> >>>
> >>> Make it possible to restore a hibernation image on x86_64 with the help of a
> >>> kernel different from the one in the image.
> >>>
> >>> The idea is to split the core restoration code into two separate parts and to
> >>> place each of them in a different page.  The first part belongs to the boot
> >>
> >> What happens in case where both parts want to be
> >> at the same place? (Like kernel being restored is 4KB smaller, so that
> >> routines now collide?)
> >
> > Bad things, but I can't see how to avoid that reliably.
>
> can you at least detect it reliably? (feed a program both kernel images
> and have it tell you 'yes/no')

Well, I have an idea how to handle that, but I need to test it. Stay tuned. :-)

Greetings,
Rafael