Re: [PATCH] Hibernation: Document __save_processor_state() onx86-64

From: Ingo Molnar
Date: Sun Dec 30 2007 - 09:21:48 EST



* Rafael J. Wysocki <rjw@xxxxxxx> wrote:

> From: Rafael J. Wysocki <rjw@xxxxxxx>
>
> Document the fact that __save_processor_state() has to save all CPU
> registers referred to by the kernel in case a different kernel is used
> to load and restore a hibernation image containing it.

ok - so i guess i should drop this from x86.git:

@@ -53,7 +53,6 @@ void __save_processor_state(struct saved
ctxt->cr2 = read_cr2();
ctxt->cr3 = read_cr3();
ctxt->cr4 = read_cr4();
- ctxt->cr8 = read_cr8();
}

right? But i'm wondering - are we really ever resuming to a different
kernel version, for this to be an issue?

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/