]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic: Add debugfs vgic-state file
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 17 Jan 2017 22:09:13 +0000 (23:09 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 25 Jan 2017 12:50:03 +0000 (13:50 +0100)
commit95905d9f86bf020eb6a14617d5b5ab7315ded8e2
tree1cb2edb34246edf8a5047f2721608cb2ca48e812
parent6e056c8a733d4b80d42fa0051bab799165b98b5e
KVM: arm/arm64: vgic: Add debugfs vgic-state file

Add a file to debugfs to read the in-kernel state of the vgic.  We don't
do any locking of the entire VGIC state while traversing all the IRQs,
so if the VM is running the user/developer may not see a quiesced state,
but should take care to pause the VM using facilities in user space for
that purpose.

We also don't support LPIs yet, but they can be added easily if needed.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/Makefile
arch/arm64/kvm/Makefile
include/kvm/arm_vgic.h
virt/kvm/arm/vgic/vgic-debug.c [new file with mode: 0644]
virt/kvm/arm/vgic/vgic-init.c
virt/kvm/arm/vgic/vgic.h