From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: ARM processor mode, kernel startup, Hyp / secure state
Date: Wed, 24 Aug 2011 18:09:53 +0100 [thread overview]
Message-ID: <20110824170953.GA8883@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20110824135109.GP32688@e102144-lin.cambridge.arm.com>
On Wed, Aug 24, 2011 at 02:51:09PM +0100, Will Deacon wrote:
> I think it's important to separate the problems of secure boot with the
> problems of installing a hypervisor. Whatever happens in secure world, we can
> expect to be dropped at either HYP mode or non-secure SVC mode. Sure, on a dev
> board you might run directly in the secure world so there's a bit of extra
> work to do to get out of that but then we can just drop into HVC mode and
> forget about it.
I think you're painting a very simple picture there.
If the kernel has been handed over to while in secure mode, that's
probably because there is no secure monitor implemented. If there's
no secure monitor implemented, there's no code in place to handle
SMC instructions. To make things worse, if we drop out into non-secure
mode, due to the lack of working SMC instructions, we have no way to
access the various registers we need to.
So, if the kernel is booted in secure mode and wants to drop into non-
secure mode, we need a separate blob of code to install as our own
secure monitor to provide these services.
> Unlike the fragmented secure monitor API that currently exists across
> different platforms, it's really in the interests of the vendor to
> standardise on the HYP interface and provide calls to install code, otherwise
> they run the risk of producing what is essentially a closed system.
On the other hand, I'm sure vendors are already thinking along those
lines - the precident has been set by the secure monitor API mess, so
if it can be made to "work" there...
next prev parent reply other threads:[~2011-08-24 17:09 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-23 14:52 ARM processor mode, kernel startup, Hyp / secure state Ian Jackson
2011-08-23 15:14 ` Russell King - ARM Linux
2011-08-23 16:50 ` Ian Jackson
2011-08-23 17:36 ` Russell King - ARM Linux
2011-08-23 17:51 ` Ian Jackson
2011-08-23 19:59 ` Nicolas Pitre
[not found] ` <CANM98qLC2mLvXZwqurZvn-8VBR_KyQdK3Q=icU3k=95KKvJoSg@mail.gmail.com>
2011-08-23 16:38 ` [Android-virt] " Ian Jackson
2011-08-23 16:50 ` Dave Martin
2011-08-23 16:59 ` Ian Jackson
2011-08-23 17:15 ` Ian Jackson
2011-08-23 19:06 ` Dave Martin
2011-08-23 17:18 ` Ian Jackson
2011-08-23 17:45 ` Russell King - ARM Linux
2011-08-23 17:57 ` Ian Jackson
2011-08-23 20:24 ` Nicolas Pitre
2011-08-23 22:18 ` Will Deacon
2011-08-24 9:24 ` Dave Martin
2011-08-23 17:17 ` Catalin Marinas
2011-08-23 17:23 ` Ian Jackson
2011-08-23 21:12 ` Catalin Marinas
2011-08-24 13:51 ` Will Deacon
2011-08-24 15:45 ` Ian Jackson
2011-08-24 16:00 ` Will Deacon
2011-08-24 16:09 ` Ian Jackson
2011-08-24 16:13 ` Will Deacon
2011-08-25 10:13 ` Ian Jackson
2011-08-25 11:42 ` Will Deacon
2011-08-24 17:09 ` Russell King - ARM Linux [this message]
2011-08-24 17:38 ` Will Deacon
2011-08-25 9:57 ` Dave Martin
2011-08-23 17:42 ` Russell King - ARM Linux
2011-08-24 11:43 ` Linus Walleij
2011-08-24 12:37 ` Martin HOVANG
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=20110824170953.GA8883@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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).