kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: ARM: Get rid of hardcoded VGIC addresses
@ 2012-10-20  4:14 Christoffer Dall
  2012-10-20  4:14 ` [PATCH 1/2] KVM: ARM: Introduce KVM_SET_DEVICE_ADDRESS ioctl Christoffer Dall
  2012-10-20  4:14 ` [PATCH 2/2] KVM: ARM: Defer parts of the vgic init until first KVM_RUN Christoffer Dall
  0 siblings, 2 replies; 5+ messages in thread
From: Christoffer Dall @ 2012-10-20  4:14 UTC (permalink / raw)
  To: kvmarm; +Cc: kvm, Christoffer Dall

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.

We introduce a new ioctl, KVM_SET_DEVICE_ADDRESS, that lets user space
provide a base address for a device based on exported device ids.  For
now, this is only supported for the ARM vgic.  User space provides this
address after creating the IRQ chip and KVM performs the required
mappings for a VM on the first execution of a VCPU.

Christoffer Dall (2):
  KVM: ARM: Introduce KVM_SET_DEVICE_ADDRESS ioctl
  KVM: ARM: Defer parts of the vgic init until first KVM_RUN

 Documentation/virtual/kvm/api.txt |   37 ++++++++++++++
 arch/arm/include/asm/kvm.h        |   13 +++++
 arch/arm/include/asm/kvm_mmu.h    |    2 +
 arch/arm/include/asm/kvm_vgic.h   |   27 ++++++++--
 arch/arm/kvm/arm.c                |   41 ++++++++++++++-
 arch/arm/kvm/vgic.c               |   99 +++++++++++++++++++++++++++++--------
 include/linux/kvm.h               |    8 +++
 7 files changed, 201 insertions(+), 26 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-20 13:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-20  4:14 [PATCH 0/2] KVM: ARM: Get rid of hardcoded VGIC addresses Christoffer Dall
2012-10-20  4:14 ` [PATCH 1/2] KVM: ARM: Introduce KVM_SET_DEVICE_ADDRESS ioctl Christoffer Dall
2012-10-20  4:14 ` [PATCH 2/2] KVM: ARM: Defer parts of the vgic init until first KVM_RUN Christoffer Dall
2012-10-20 10:27   ` [kvmarm] " Marc Zyngier
2012-10-20 13:29     ` Christoffer Dall

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).