From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/7] Allow the kernel to be booted in HYP mode
Date: Sat, 11 Aug 2012 12:04:30 +0100 [thread overview]
Message-ID: <1344683077-12841-1-git-send-email-marc.zyngier@arm.com> (raw)
This patch series allows the kernel (and the decompressor) to be
entered in HYP mode, which is a requirement for supporting hypervisors
such as KVM.
The main idea is to have a stub hypervisor to go back and forth
between HYP and SVC modes, and let the kernel install a full blown
hypervisor if necessary. Also, we ensure that a kernel without virt
support can still be entered in HYP mode and safely go back to SVC.
Most of the heavy lifting has been done by Dave Martin, but all bugs
have been introduced by me while reworking it. This series also relies
on Dave's earlier opcode injection series :
http://comments.gmane.org/gmane.linux.ports.arm.kernel/180901
It's been tested on a variety of platforms (VE A9/A15, Fast Model)
with all combinaisons of entering in HYP or SVC, ARM or Thumb2
kernels.
Patches against 3.6-rc1.
Dave Martin (5):
ARM: virt: allow the kernel to be entered in HYP mode
ARM: zImage/virt: hyp mode entry support for the zImage loader
ARM: virt: Update documentation for hyp mode entry support
ARM: virt: Add boot-time diagnostics
ARM: virt: Add CONFIG_ARM_VIRT_EXT option
Marc Zyngier (2):
ARM: opcodes: add __ERET/__MSR_ELR_HYP instruction encoding
ARM: virt: arch_timers: enable access to physical timers
Documentation/arm/Booting | 22 ++++-
arch/arm/boot/compressed/.gitignore | 1 +
arch/arm/boot/compressed/Makefile | 9 ++-
arch/arm/boot/compressed/head.S | 71 ++++++++++-
arch/arm/include/asm/assembler.h | 28 +++++
arch/arm/include/asm/opcodes-virt.h | 10 ++
arch/arm/include/asm/ptrace.h | 1 +
arch/arm/include/asm/virt.h | 69 +++++++++++
arch/arm/kernel/Makefile | 2 +
arch/arm/kernel/head.S | 14 ++-
arch/arm/kernel/hyp-stub.S | 218 +++++++++++++++++++++++++++++++++++
arch/arm/kernel/setup.c | 20 +++
arch/arm/kernel/smp.c | 3 +
arch/arm/mm/Kconfig | 17 +++
14 files changed, 473 insertions(+), 12 deletions(-)
create mode 100644 arch/arm/include/asm/virt.h
create mode 100644 arch/arm/kernel/hyp-stub.S
--
1.7.8.6
next reply other threads:[~2012-08-11 11:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-11 11:04 Marc Zyngier [this message]
2012-08-11 11:04 ` [PATCH 1/7] ARM: opcodes: add __ERET/__MSR_ELR_HYP instruction encoding Marc Zyngier
2012-08-11 11:04 ` [PATCH 2/7] ARM: virt: allow the kernel to be entered in HYP mode Marc Zyngier
2012-08-11 11:04 ` [PATCH 3/7] ARM: zImage/virt: hyp mode entry support for the zImage loader Marc Zyngier
2012-08-11 11:04 ` [PATCH 4/7] ARM: virt: Update documentation for hyp mode entry support Marc Zyngier
2012-08-11 11:04 ` [PATCH 5/7] ARM: virt: Add boot-time diagnostics Marc Zyngier
2012-08-11 11:04 ` [PATCH 6/7] ARM: virt: Add CONFIG_ARM_VIRT_EXT option Marc Zyngier
2012-08-11 11:04 ` [PATCH 7/7] ARM: virt: arch_timers: enable access to physical timers Marc Zyngier
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=1344683077-12841-1-git-send-email-marc.zyngier@arm.com \
--to=marc.zyngier@arm.com \
--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).