From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, patches@linaro.org
Subject: [Qemu-devel] [RFC 0/5] Support KVM on ARM
Date: Thu, 9 Aug 2012 17:33:05 +0100 [thread overview]
Message-ID: <1344529990-23251-1-git-send-email-peter.maydell@linaro.org> (raw)
This patch series is an early RFC for the QEMU patches adding
support for KVM on ARM Cortex-A15 hardware. It's intended for
use with the kernel tree at
git://github.com/virtualopensystems/linux-kvm-arm.git kvm-a15-v10-stage
There are two aims here:
* early review for qemu-devel folk
* resend a complete set of patches to kvmarm, since I've done a
number of incremental changes and tweaks since Christoffer's
original QEMU code
These patches depend on various cleanups to KVM and configure
which I've posted in the last couple of weeks:
configure: Don't implicitly hardcode list of KVM architectures
update-linux-headers.sh: Pull in asm-generic/kvm_para.h
update-linux-headers.sh: Don't hard code list of architectures
kvm-all.c: Move init of irqchip_inject_ioctl out of kvm_irqchip_create()
kvm: Add documentation comment for kvm_irqchip_in_kernel()
kvm: Decouple 'GSI routing' from 'kernel irqchip'
kvm: Decouple 'MSI routing via irqfds' from 'kernel irqchip'
kvm: Decouple 'irqfds usable' from 'kernel irqchip'
kvm: Move kvm_allows_irq0_override() to target-i386, fix return type
kvm: Rename kvm_irqchip_set_irq() to kvm_set_irq()
kvm: Decouple 'async interrupt delivery' from 'kernel irqchip'
A git branch consisting of qemu master + these preliminary fixes
+ the ARM patches is available here:
git://git.linaro.org/people/pmaydell/qemu-arm.git kvm-arm
with pointy-clicky version here:
http://git.linaro.org/gitweb?p=people/pmaydell/qemu-arm.git;a=shortlog;h=refs/heads/kvm-arm
There are still a number of TODOs scattered through the code;
a quick summary:
* a15mpcore should enforce vgic use (currently not done pending the
VGIC patches landing in Christoffer's kernel tree)
* the makefile change for the hw/kvm/arm_gic object is not right
(see discussions on qemu-devel in the past about how to handle
"only if architecture foo and KVM" object files)
* kvm_arch_put/get_registers should drive register set/get from
the cp15 hashtable
* we should use an accessor function for c2_mask/base/control
* breakpoint support is unimplemented
* vgic register save/load from kernel is unimplemented (no kernel ABI)
* fpu save/load unimplemented (no kernel ABI yet)
* tell kernel the A15 peripheral base address (no kernel ABI)
* the kernel ABI for sending per-CPU interrupts for VGIC vs non-VGIC
is inconsistent (the former uses a vcpu ioctl, the latter encodes
cpu number in the irq number), and we should standardise on one
approach or the other
Christoffer Dall (1):
ARM: KVM: Add support for KVM on ARM architecture
Peter Maydell (4):
linux-headers: Add ARM KVM headers (not for upstream)
hw/arm_gic: Add presave/postload hooks
hw/kvm/arm_gic: Implement support for KVM in-kernel ARM GIC
configure: Enable KVM on ARM
configure | 2 +-
hw/a15mpcore.c | 11 +-
hw/arm/Makefile.objs | 1 +
hw/arm_gic_common.c | 10 ++
hw/arm_gic_internal.h | 2 +
hw/arm_pic.c | 28 ++++
hw/kvm/arm_gic.c | 153 +++++++++++++++++++
linux-headers/asm-arm/kvm.h | 119 +++++++++++++++
linux-headers/asm-arm/kvm_para.h | 1 +
linux-headers/asm-generic/kvm_para.h | 5 +
linux-headers/linux/kvm.h | 3 +
target-arm/Makefile.objs | 1 +
target-arm/cpu.h | 1 +
target-arm/helper.c | 2 +-
target-arm/kvm.c | 274 ++++++++++++++++++++++++++++++++++
15 files changed, 610 insertions(+), 3 deletions(-)
create mode 100644 hw/kvm/arm_gic.c
create mode 100644 linux-headers/asm-arm/kvm.h
create mode 100644 linux-headers/asm-arm/kvm_para.h
create mode 100644 linux-headers/asm-generic/kvm_para.h
create mode 100644 target-arm/kvm.c
--
1.7.9.5
next reply other threads:[~2012-08-09 16:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 16:33 Peter Maydell [this message]
2012-08-09 16:33 ` [Qemu-devel] [RFC 1/5] linux-headers: Add ARM KVM headers (not for upstream) Peter Maydell
2012-08-09 16:33 ` [Qemu-devel] [RFC 2/5] ARM: KVM: Add support for KVM on ARM architecture Peter Maydell
2012-08-09 16:33 ` [Qemu-devel] [RFC 3/5] hw/arm_gic: Add presave/postload hooks Peter Maydell
2012-08-09 16:33 ` [Qemu-devel] [RFC 4/5] hw/kvm/arm_gic: Implement support for KVM in-kernel ARM GIC Peter Maydell
2012-08-09 16:33 ` [Qemu-devel] [RFC 5/5] configure: Enable KVM on ARM Peter Maydell
2012-08-12 9:55 ` Avi Kivity
2012-08-12 11:09 ` [Qemu-devel] [kvmarm] " Alexander Graf
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=1344529990-23251-1-git-send-email-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=patches@linaro.org \
--cc=qemu-devel@nongnu.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).