From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoffer Dall Subject: [RFC PATCH 0/3] KVM: ARM: Get rid of hardcoded VGIC addresses Date: Sat, 13 Oct 2012 20:04:22 -0400 Message-ID: <1350173065-35350-1-git-send-email-c.dall@virtualopensystems.com> Cc: peter.maydell@linaro.org, marc.zyngier@arm.com, Christoffer Dall To: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Return-path: Received: from mail-qa0-f53.google.com ([209.85.216.53]:34266 "EHLO mail-qa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752104Ab2JNAEj (ORCPT ); Sat, 13 Oct 2012 20:04:39 -0400 Received: by mail-qa0-f53.google.com with SMTP id s11so478729qaa.19 for ; Sat, 13 Oct 2012 17:04:38 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: *** 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(-) -- 1.7.9.5