util/qemu-error: prepend guest name to error message to identify affected VM owner
commit2880ffb08995238714b175db703c13fac4725cc1
authorMario Smarduch <msmarduch@digitalocean.com>
Fri, 26 Jun 2020 20:19:00 +0000 (26 13:19 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2020 22:02:15 +0000 (10 18:02 -0400)
tree83e75943621705232ee22fa10b861d0d083f9d9b
parent3bcb5840f1b3ef9970da963bf94f637b665387ef
util/qemu-error: prepend guest name to error message to identify affected VM owner

This is followup patch to the one submitted back in Oct, 19

https://lists.gnu.org/archive/html/qemu-devel/2019-10/msg02102.html

My mistake here, I took my eyes of the mailing list after I got the
initial thumbs up. This patch follows up on Markus comments in the
above link.

Purpose of this patch:

We want to print guest name for errors, warnings and info messages. This
was the first of two patches the second being MCE errors targeting a VM
with guest name prepended. But in a large fleet we see many other
errors that disable a VM or crash it. In a large fleet and centralized
logging having the guest name enables identify of owner and customer.

Signed-off-by: Mario Smarduch <msmarduch@digitalocean.com>
Message-Id: <20200626201900.8876-1-msmarduch@digitalocean.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/error-report.h
qemu-options.hx
softmmu/vl.c
util/qemu-error.c