Skip to content

Commit 440523b

Browse files
author
Marc Zyngier
committed
KVM: arm64: vgic: Demote userspace-triggered console prints to kvm_debug()
Running the KVM selftests results in these messages being dumped in the kernel console: [ 188.051073] kvm [469]: VGIC redist and dist frames overlap [ 188.056820] kvm [469]: VGIC redist and dist frames overlap [ 188.076199] kvm [469]: VGIC redist and dist frames overlap Being amle to trigger this from userspace is definitely not on, so demote these warnings to kvm_debug(). Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c95b1d7 commit 440523b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/arm64/kvm/vgic/vgic-v2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,12 @@ int vgic_v2_map_resources(struct kvm *kvm)
293293

294294
if (IS_VGIC_ADDR_UNDEF(dist->vgic_dist_base) ||
295295
IS_VGIC_ADDR_UNDEF(dist->vgic_cpu_base)) {
296-
kvm_err("Need to set vgic cpu and dist addresses first\n");
296+
kvm_debug("Need to set vgic cpu and dist addresses first\n");
297297
return -ENXIO;
298298
}
299299

300300
if (!vgic_v2_check_base(dist->vgic_dist_base, dist->vgic_cpu_base)) {
301-
kvm_err("VGIC CPU and dist frames overlap\n");
301+
kvm_debug("VGIC CPU and dist frames overlap\n");
302302
return -EINVAL;
303303
}
304304

arch/arm64/kvm/vgic/vgic-v3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,12 @@ int vgic_v3_map_resources(struct kvm *kvm)
554554
}
555555

556556
if (IS_VGIC_ADDR_UNDEF(dist->vgic_dist_base)) {
557-
kvm_err("Need to set vgic distributor addresses first\n");
557+
kvm_debug("Need to set vgic distributor addresses first\n");
558558
return -ENXIO;
559559
}
560560

561561
if (!vgic_v3_check_base(kvm)) {
562-
kvm_err("VGIC redist and dist frames overlap\n");
562+
kvm_debug("VGIC redist and dist frames overlap\n");
563563
return -EINVAL;
564564
}
565565

0 commit comments

Comments
 (0)