Skip to content

Commit c2ba07d

Browse files
ikichavireshk
authored andcommitted
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 <[email protected]>
1 parent f2acb05 commit c2ba07d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/vsock/src/vhu_vsock.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ impl VhostUserBackend<VringRwLock, ()> for VhostUserVsockBackend {
297297
TX_QUEUE_EVENT => {
298298
thread.process_tx(vring_tx, evt_idx)?;
299299
}
300-
EVT_QUEUE_EVENT => {}
300+
EVT_QUEUE_EVENT => {
301+
warn!("Received an unexpected EVT_QUEUE_EVENT");
302+
}
301303
BACKEND_EVENT => {
302304
thread.process_backend_evt(evset);
303305
if let Err(e) = thread.process_tx(vring_tx, evt_idx) {

0 commit comments

Comments
 (0)