vsock: add warning message for EVT_QUEUE_EVENT

EVT_QUEUE_EVENT is an unexpected message from current impl, so add
warning for that

Signed-off-by: Jeongik Cha <jeongik@google.com>
This commit is contained in:
Jeongik Cha 2023-07-28 00:18:15 +09:00 committed by Viresh Kumar
parent f2acb05c33
commit c2ba07dc06

View File

@ -297,7 +297,9 @@ impl VhostUserBackend<VringRwLock, ()> for VhostUserVsockBackend {
TX_QUEUE_EVENT => {
thread.process_tx(vring_tx, evt_idx)?;
}
EVT_QUEUE_EVENT => {}
EVT_QUEUE_EVENT => {
warn!("Received an unexpected EVT_QUEUE_EVENT");
}
BACKEND_EVENT => {
thread.process_backend_evt(evset);
if let Err(e) = thread.process_tx(vring_tx, evt_idx) {