KVM: arm64: vgic-v3: Log which GICv3 system registers are trapped
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Jun 2017 11:49:54 +0000 (12:49 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 15 Jun 2017 08:45:06 +0000 (09:45 +0100)
In order to facilitate debug, let's log which class of GICv3 system
registers are trapped.

Tested-by: Alexander Graf <agraf@suse.de>
Acked-by: David Daney <david.daney@cavium.com>
Acked-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
virt/kvm/arm/vgic/vgic-v3.c

index 91cf8b4f01f18298ba0995cb7d4e89a68dc750a7..96ea597db0e776211a88c1c5105ca8fd9945517e 100644 (file)
@@ -518,7 +518,10 @@ int vgic_v3_probe(const struct gic_kvm_info *info)
 #endif
 
        if (group0_trap || group1_trap || common_trap) {
-               kvm_info("GICv3 sysreg trapping enabled (reduced performance)\n");
+               kvm_info("GICv3 sysreg trapping enabled ([%s%s%s], reduced performance)\n",
+                        group0_trap ? "G0" : "",
+                        group1_trap ? "G1" : "",
+                        common_trap ? "C"  : "");
                static_branch_enable(&vgic_v3_cpuif_trap);
        }