diff options
| author | Mario Smarduch | 2020-06-26 22:19:00 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2020-07-11 00:02:15 +0200 |
| commit | 2880ffb08995238714b175db703c13fac4725cc1 (patch) | |
| tree | 83e75943621705232ee22fa10b861d0d083f9d9b /include | |
| parent | tests: Inject test name also when the test fails (diff) | |
| download | qemu-2880ffb08995238714b175db703c13fac4725cc1.tar.gz qemu-2880ffb08995238714b175db703c13fac4725cc1.tar.xz qemu-2880ffb08995238714b175db703c13fac4725cc1.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/qemu/error-report.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/error-report.h b/include/qemu/error-report.h index 87532d8596..a5ad95ff1b 100644 --- a/include/qemu/error-report.h +++ b/include/qemu/error-report.h @@ -75,5 +75,7 @@ void error_init(const char *argv0); const char *error_get_progname(void); extern bool error_with_timestamp; +extern bool error_with_guestname; +extern const char *error_guest_name; #endif |
