From: geoff@infradead.org (Geoff Levand)
To: linux-arm-kernel@lists.infradead.org
Subject: Kexec and KVM not working gracefully together
Date: Sun, 08 Feb 2015 19:54:49 -0800 [thread overview]
Message-ID: <1423454089.4605.1.camel@infradead.org> (raw)
In-Reply-To: <CAHt6W4f-maGM75toP1TJV8wCZpZC3+ER9KqAnASJPhK8f_+aqg@mail.gmail.com>
Hi Frediano,
On Fri, 2015-02-06 at 12:14 +0000, Frediano Ziglio wrote:
> 2015-02-06 10:56 GMT+00:00 AKASHI Takahiro <takahiro.akashi@linaro.org>:
> >> Frediano Ziglio wrote:
> >> The kernel code is supposed (at least in ARMv7) to run in SVC mode,
> >> not on HYP mode. One reason is that code that change SCTLR executed at
> >> HYP instead of SVC would not change current mode system control
> >> register. The function does not revert to HYP for this reason.
> >
> > I need understand what you mentioned here, but for arm64, Geoff's kexec lets
> > the boot cpu in hyp mode at soft_restart().
>
> Where's Geoff code? Note however that is not maintainable in this way
> as people have to consider that future code could execute in either
> HYP or SVC mode. Did you test that all code called from soft_restart
> could do it?
Basically, when a CPU is reset it needs to be put into the exception
level it had when it first entered the kernel.
I have my arm64 kernel patches here:
https://git.kernel.org/cgit/linux/kernel/git/geoff/linux-kexec.git
The patches related to CPU reset are:
arm64: Convert hcalls to use ISS field
arm64: Add new hcall HVC_CALL_FUNC
arm64: Add EL2 switch to soft_restart
-Geoff
next prev parent reply other threads:[~2015-02-09 3:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-27 15:07 Kexec and KVM not working gracefully together Frediano Ziglio
2015-01-27 15:25 ` Marc Zyngier
2015-02-05 6:17 ` AKASHI Takahiro
2015-02-05 9:43 ` Marc Zyngier
2015-02-05 10:27 ` AKASHI Takahiro
2015-02-05 10:51 ` Frediano Ziglio
2015-02-05 13:32 ` Marc Zyngier
2015-02-05 14:27 ` Frediano Ziglio
2015-02-05 16:56 ` Frediano Ziglio
2015-02-06 4:13 ` AKASHI Takahiro
2015-02-06 9:50 ` Frediano Ziglio
2015-02-06 10:56 ` AKASHI Takahiro
2015-02-06 12:14 ` Frediano Ziglio
2015-02-06 14:09 ` Marc Zyngier
2015-02-09 3:54 ` Geoff Levand [this message]
2015-02-09 15:51 ` Frediano Ziglio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423454089.4605.1.camel@infradead.org \
--to=geoff@infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).