KVM: arm/arm64: vgic: Add distributor and redistributor access
VGICv3 Distributor and Redistributor registers are accessed using KVM_DEV_ARM_VGIC_GRP_DIST_REGS and KVM_DEV_ARM_VGIC_GRP_REDIST_REGS with KVM_SET_DEVICE_ATTR and KVM_GET_DEVICE_ATTR ioctls. These registers are accessed as 32-bit and cpu mpidr value passed along with register offset is used to identify the cpu for redistributor registers access. The version of VGIC v3 specification is defined here Documentation/virtual/kvm/devices/arm-vgic-v3.txt Also update arch/arm/include/uapi/asm/kvm.h to compile for AArch32 mode. Signed-off-by:Vijaya Kumar K <Vijaya.Kumar@cavium.com> Reviewed-by:
Christoffer Dall <christoffer.dall@linaro.org> Reviewed-by:
Eric Auger <eric.auger@redhat.com> Signed-off-by:
Marc Zyngier <marc.zyngier@arm.com>
Showing
- arch/arm/include/uapi/asm/kvm.h 4 additions, 0 deletionsarch/arm/include/uapi/asm/kvm.h
- arch/arm64/include/uapi/asm/kvm.h 4 additions, 0 deletionsarch/arm64/include/uapi/asm/kvm.h
- virt/kvm/arm/vgic/vgic-kvm-device.c 146 additions, 15 deletionsvirt/kvm/arm/vgic/vgic-kvm-device.c
- virt/kvm/arm/vgic/vgic-mmio-v2.c 21 additions, 19 deletionsvirt/kvm/arm/vgic/vgic-mmio-v2.c
- virt/kvm/arm/vgic/vgic-mmio-v3.c 85 additions, 0 deletionsvirt/kvm/arm/vgic/vgic-mmio-v3.c
- virt/kvm/arm/vgic/vgic-mmio.c 1 addition, 1 deletionvirt/kvm/arm/vgic/vgic-mmio.c
- virt/kvm/arm/vgic/vgic.h 39 additions, 1 deletionvirt/kvm/arm/vgic/vgic.h
Loading
Please register or sign in to comment