[RFC 0/5] Support KVM on ARM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux