Skip to content

Commit

Permalink
KVM: arm64: vgic-v3: Log which GICv3 system registers are trapped
Browse files Browse the repository at this point in the history
BugLink: https://bugs.launchpad.net/bugs/1673564

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>
(cherry picked from commit 2873b50)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
  • Loading branch information
Marc Zyngier authored and Seth Forshee committed Jul 14, 2017
1 parent 44d2fe3 commit 0e6cf11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion virt/kvm/arm/vgic/vgic-v3.c
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 0e6cf11

Please sign in to comment.