devices: virtio: vhost-user: add stop failure logs.

In a recent CL, we found that errors from stopping a queue were being
swallowed by the vhost-user middleware. This CL adds some logging to
cover this case.

BUG=b:308890529
TEST=used new logging to debug an issue.

Change-Id: I83a89e542d79ae0fcc4ff430c90edb5fc4335497
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5054420
Commit-Queue: Noah Gold <nkgold@google.com>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Noah Gold 2023-11-22 21:58:14 -08:00 committed by crosvm LUCI
parent fda3cfc61f
commit 4a994d90ba

View file

@ -721,7 +721,10 @@ impl VhostUserSlaveReqHandlerMut for DeviceRequestHandler {
{
match self.backend.stop_queue(index) {
Ok(queue) => vring.paused_queue = Some(queue),
Err(e) => return Err(VhostError::StopQueueError(e)),
Err(e) => {
error!("failed to stop queue index {}: {:#}", index, e);
return Err(VhostError::StopQueueError(e));
}
}
}
self.backend