Skip to content

RFC KVM: ARM: Get rid of hardcoded VGIC addresses

Christoffer Dall kvm kvm-ppc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 55 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: ARM: Introduce KVM_INIT_IRQCHIP ioctlDocumentation/virtual/kvm/api.txt arch/arm/kvm/arm.c include/linux/kvm.h+20 -06 replies
2/3KVM: ARM: Introduce KVM_SET_DEVICE_ADDRESS ioctlDocumentation/virtual/kvm/api.txt arch/arm/include/asm/kvm.h arch/arm/include/asm/kvm_mmu.h +4 more+119 -45 replies
3/3KVM: ARM: Split KVM_CREATE_IRQCHIP and KVM_INIT_IRQCHIParch/arm/include/asm/kvm_vgic.h arch/arm/kvm/arm.c arch/arm/kvm/vgic.c+44 -81 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] KVM: ARM: Get rid of hardcoded VGIC addresses

*** warning: this RFC patch series is only compile-tested ***

We need a way to specify the address at which we expect VMs to access the interrupt controller (both the emulated distributor and the hardware interface supporting virtualization). User space should decide on this address as user space decides on an emulated board and loads a device tree describing these details directly to the guest.

Instead of modifying the copying KVM_CREATE_IRQCHIP to an ARM specific ioctl with a a highly device specific set of parameters, we try something slightly more generic, that should fit well with how user space (read QEMU) first builds the individual devices and later sets up the emulated platform.

Comments welcome!

Christoffer Dall (3):
KVM: ARM: Introduce KVM_INIT_IRQCHIP ioctl
KVM: ARM: Introduce KVM_SET_DEVICE_ADDRESS ioctl
KVM: ARM: Split KVM_CREATE_IRQCHIP and KVM_INIT_IRQCHIP

 Documentation/virtual/kvm/api.txt |   46 +++++++++++++++++++++++
 arch/arm/include/asm/kvm.h        |   13 +++++++
 arch/arm/include/asm/kvm_mmu.h    |    1 +
 arch/arm/include/asm/kvm_vgic.h   |   12 ++++++
 arch/arm/kvm/arm.c                |   38 ++++++++++++++++++-
 arch/arm/kvm/vgic.c               |   74 +++++++++++++++++++++++++++++++------
 include/linux/kvm.h               |   11 ++++++
 7 files changed, 183 insertions(+), 12 deletions(-)
Signature · 1 line
1.7.9.5