KVM: arm-vgic: Add vgic reg access from dev attr
authorChristoffer Dall <christoffer.dall@linaro.org>
Fri, 25 Oct 2013 20:17:31 +0000 (21:17 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Sat, 21 Dec 2013 18:01:39 +0000 (10:01 -0800)
commitc07a0191ef2de1f9510f12d1f88e3b0b5cd8d66f
tree0f598e9d286a8d48d0c4aeeb43163cb7fff9825f
parente9b152cb957cb194437f37e79f0f3c9d34fe53d6
KVM: arm-vgic: Add vgic reg access from dev attr

Add infrastructure to handle distributor and cpu interface register
accesses through the KVM_{GET/SET}_DEVICE_ATTR interface by adding the
KVM_DEV_ARM_VGIC_GRP_DIST_REGS and KVM_DEV_ARM_VGIC_GRP_CPU_REGS groups
and defining the semantics of the attr field to be the MMIO offset as
specified in the GICv2 specs.

Missing register accesses or other changes in individual register access
functions to support save/restore of the VGIC state is added in
subsequent patches.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Documentation/virtual/kvm/devices/arm-vgic.txt
arch/arm/include/uapi/asm/kvm.h
virt/kvm/arm/vgic.c