Re: [PATCH 31/31] KVM: arm64: vgic-v3: Log which GICv3 system registers are trapped

Auger Eric
2017-05-30T09:56:21Z

Hi,
On 03/05/2017 12:46, Marc Zyngier wrote:
> In order to facilitate debug, let's log which class of GICv3 system
> registers are trapped.
>
> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>

Eric
> ---
> virt/kvm/arm/vgic/vgic-v3.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/virt/kvm/arm/vgic/vgic-v3.c b/virt/kvm/arm/vgic/vgic-v3.c
> index 717219ab58a2..9110657b502c 100644
> --- a/virt/kvm/arm/vgic/vgic-v3.c
> +++ b/virt/kvm/arm/vgic/vgic-v3.c
> @@ -407,7 +407,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);
> }
>
>