]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic: Add group field to struct irq
authorChristoffer Dall <christoffer.dall@arm.com>
Mon, 16 Jul 2018 13:06:21 +0000 (15:06 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Sat, 21 Jul 2018 15:02:24 +0000 (16:02 +0100)
commitb5ffbf95d59d192f606bc9c8c3ba7d2c173eccf6
tree57a41a550b2236a994df36f54a23d095d17e07d5
parent9aabb4a37dfedb152da90f31906b054465c36f98
KVM: arm/arm64: vgic: Add group field to struct irq

In preparation for proper group 0 and group 1 support in the vgic, we
add a field in the struct irq to store the group of all interrupts.

We initialize the group to group 0 when emulating GICv2 and to group 1
when emulating GICv3, just like we treat them today.  LPIs are always
group 1.  We also continue to ignore writes from the guest, preserving
existing functionality, for now.

Finally, we also add this field to the vgic debug logic to show the
group for all interrupts.

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/kvm/arm_vgic.h
virt/kvm/arm/vgic/vgic-debug.c
virt/kvm/arm/vgic/vgic-init.c
virt/kvm/arm/vgic/vgic-its.c