Thread (72 messages) 72 messages, 9 authors, 2014-11-17
STALE4242d

[PATCH 04/10] arm64: Add EL2 switch to soft_restart

From: geoff@infradead.org (Geoff Levand)
Date: 2014-10-31 23:47:52
Also in: kexec

On Fri, 2014-10-24 at 11:57 +0100, Mark Rutland wrote:
On Fri, Oct 24, 2014 at 12:10:58AM +0100, Geoff Levand wrote:
quoted
When a CPU is reset it needs to be put into the exception level it had when it
entered the kernel.  Update cpu_reset() to accept an argument el2_switch which
signals cpu_reset() to enter the soft reset address at EL2.  If el2_switch is
not set the soft reset address will be entered at EL1.

Update cpu_soft_restart() and soft_restart() to pass the return of
is_hyp_mode_available() as the el2_switch value to cpu_reset().  Also update the
comments of cpu_reset(), cpu_soft_restart() and soft_restart() to reflect this
change.
This will blow up without warning with KVM, and I think we need to
address that first.
Yes.  I think we can just put in a conditional on KVM as a workaround
until KVM will work with this.

-Geoff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help