From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoffer Dall Subject: [PATCH 0/2] KVM: ARM: Get rid of hardcoded VGIC addresses Date: Sat, 20 Oct 2012 00:14:40 -0400 Message-ID: <1350706482-7223-1-git-send-email-c.dall@virtualopensystems.com> Cc: kvm@vger.kernel.org, Christoffer Dall To: kvmarm@lists.cs.columbia.edu Return-path: Received: from mail-vc0-f174.google.com ([209.85.220.174]:52077 "EHLO mail-vc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750959Ab2JTEOo (ORCPT ); Sat, 20 Oct 2012 00:14:44 -0400 Received: by mail-vc0-f174.google.com with SMTP id fk26so1227284vcb.19 for ; Fri, 19 Oct 2012 21:14:43 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: 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