]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit542af6faaf56608bf0dc31782bf980c91d63df42
tree0f598e9d286a8d48d0c4aeeb43163cb7fff9825f
parenteca9e2d2762b2f8a3b8dde8da30a3d17a05b68b0
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