]> 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)
commit76b641b4e1436286361eca4f1fe5ff0d1605dd29
tree0f598e9d286a8d48d0c4aeeb43163cb7fff9825f
parent0c500fd570b7130376f709243fe65148fa411984
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