public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kexec: Clearing registers just before jumping into purgatory
@ 2013-10-11  9:28 Daniel Kiper
  2013-10-11 10:08 ` Eric W. Biederman
  0 siblings, 1 reply; 21+ messages in thread
From: Daniel Kiper @ 2013-10-11  9:28 UTC (permalink / raw)
  To: ebiederm, hbabu, hpa, keescook, vgoyal, kexec, linux-kernel
  Cc: david.vrabel, jbeulich, keir, xen-devel

Hi,

Could you explain why do you clear all registers just before jumping
into purgatory (please look into arch/x86/kernel/relocate_kernel_64.S
for more details)? There is no any single word about that. I do not
count comment which states what is going on. purgatory on entry does
not assume any value in registers. Are you going to use that feature
for something in the future (e.g. to differentiate between callers
and/or Linux versions if it be needed)?

By the way, interestingly it is not done if preserve_context is in force.

Daniel

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

end of thread, other threads:[~2013-10-14 18:25 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-11  9:28 kexec: Clearing registers just before jumping into purgatory Daniel Kiper
2013-10-11 10:08 ` Eric W. Biederman
2013-10-11 11:04   ` Daniel Kiper
2013-10-11 12:52     ` Vivek Goyal
2013-10-11 15:37       ` Matthew Garrett
2013-10-11 15:44         ` Vivek Goyal
2013-10-11 15:48           ` Matthew Garrett
2013-10-11 16:33             ` Richard Weinberger
2013-10-11 16:39               ` Matthew Garrett
2013-10-11 16:42                 ` Richard Weinberger
2013-10-11 16:44                   ` Matthew Garrett
2013-10-11 16:47                     ` Richard Weinberger
2013-10-11 16:55                       ` Matthew Garrett
2013-10-11 16:59                         ` Richard Weinberger
2013-10-11 17:01                           ` Matthew Garrett
2013-10-11 20:44                             ` Eric W. Biederman
2013-10-11 20:50                               ` Matthew Garrett
2013-10-11 16:53                     ` Vivek Goyal
2013-10-11 16:56                       ` Matthew Garrett
2013-10-11 22:15     ` Eric W. Biederman
2013-10-14 18:24       ` Daniel Kiper

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