]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic: Define GICD_IIDR fields for GICv2 and GIv3
authorChristoffer Dall <christoffer.dall@arm.com>
Mon, 16 Jul 2018 13:06:18 +0000 (15:06 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Sat, 21 Jul 2018 15:02:19 +0000 (16:02 +0100)
commit54420218c46730175d2eb0108274f92547c0ebec
tree200738d26872550c7bd7de4850b96c9ca9f622ae
parent1f72106f0a6b8e81aa9e5f9d516093cfb14addce
KVM: arm/arm64: vgic: Define GICD_IIDR fields for GICv2 and GIv3

Instead of hardcoding the shifts and masks in the GICD_IIDR register
emulation, let's add the definition of these fields to the GIC header
files and use them.

This will make things more obvious when we're going to bump the revision
in the IIDR when we'll make guest-visible changes to the implementation.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/linux/irqchip/arm-gic-v3.h
include/linux/irqchip/arm-gic.h
virt/kvm/arm/vgic/vgic-mmio-v2.c
virt/kvm/arm/vgic/vgic-mmio-v3.c