From: Christoffer Dall <c.dall@virtualopensystems.com>
To: kvmarm@lists.cs.columbia.edu
Cc: kvm@vger.kernel.org
Subject: [PATCH v2 0/3] KVM: ARM: Get rid of hardcoded VGIC addresses
Date: Sat, 20 Oct 2012 10:14:12 -0400 [thread overview]
Message-ID: <20121020141255.24046.20020.stgit@ubuntu> (raw)
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.
To avoid users mistakenly supplying overlapping io address ranges we
check for existing mappings at io mappings for guests and explicitly
raise an error if address space conflicts occur.
Changelog[2]:
- Check for page aligned addresses on vgic_set_devic_address
- Move vgic_cpu_base for host to vgic_hyp_init
- Fix irqchip_in_kernel to be VM-specific
---
Christoffer Dall (3):
KVM: ARM: Check for overlaps of mapped io addresses
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 | 28 +++++++--
arch/arm/kvm/arm.c | 41 ++++++++++++-
arch/arm/kvm/mmu.c | 11 ++-
arch/arm/kvm/vgic.c | 121 +++++++++++++++++++++++++++++++------
include/linux/kvm.h | 8 ++
8 files changed, 231 insertions(+), 30 deletions(-)
--
Signature
next reply other threads:[~2012-10-20 14:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-20 14:14 Christoffer Dall [this message]
2012-10-20 14:14 ` [PATCH v2 1/3] KVM: ARM: Check for overlaps of mapped io addresses Christoffer Dall
2012-10-20 14:14 ` [PATCH v2 2/3] KVM: ARM: Introduce KVM_SET_DEVICE_ADDRESS ioctl Christoffer Dall
2012-10-20 14:14 ` [PATCH v2 3/3] KVM: ARM: Defer parts of the vgic init until first KVM_RUN Christoffer Dall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121020141255.24046.20020.stgit@ubuntu \
--to=c.dall@virtualopensystems.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.cs.columbia.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).