softmmu: add trace point when bdrv_flush_all fails
commit8af3f5c6d66ac203000c2d8ebebd3b751f575008
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 15 Apr 2021 13:33:51 +0000 (15 14:33 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 14 Jun 2021 12:28:50 +0000 (14 13:28 +0100)
tree0d3b289b8478ad4b3a0f0feb1e2296364f6cbfa2
parent626ff6515d41854dc8a880849ae2744c20a70ba7
softmmu: add trace point when bdrv_flush_all fails

The VM stop process has to flush outstanding I/O and this is a critical
failure scenario that is hard to diagnose. Add a probe point that
records the flush return code.

Reviewed-by: Connor Kuehl <ckuehl@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
softmmu/cpus.c
softmmu/trace-events