File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/vmm/src/devices/virtio Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22// SPDX-License-Identifier: Apache-2.0
33use event_manager:: { EventOps , Events , MutEventSubscriber } ;
4+ use log:: info;
45use vmm_sys_util:: epoll:: EventSet ;
56
67use super :: io:: FileEngine ;
@@ -85,7 +86,11 @@ impl MutEventSubscriber for VirtioBlock {
8586 if self . is_activated ( ) {
8687 match source {
8788 Self :: PROCESS_ACTIVATE => self . process_activate_event ( ops) ,
88- Self :: PROCESS_QUEUE => self . process_queue_event ( ) ,
89+ Self :: PROCESS_QUEUE => {
90+ info ! ( "Started processing Block queue" ) ;
91+ self . process_queue_event ( ) ;
92+ info ! ( "Stopped processing Block queue" ) ;
93+ }
8994 Self :: PROCESS_RATE_LIMITER => self . process_rate_limiter_event ( ) ,
9095 Self :: PROCESS_ASYNC_COMPLETION => self . process_async_completion_event ( ) ,
9196 _ => warn ! ( "Block: Spurious event received: {:?}" , source) ,
Original file line number Diff line number Diff line change 22// SPDX-License-Identifier: Apache-2.0
33
44use event_manager:: { EventOps , Events , MutEventSubscriber } ;
5+ use log:: info;
56use vmm_sys_util:: epoll:: EventSet ;
67
78use crate :: devices:: virtio:: device:: VirtioDevice ;
@@ -97,6 +98,7 @@ impl MutEventSubscriber for Net {
9798 }
9899
99100 if self . is_activated ( ) {
101+ info ! ( "Started processing Net device event" ) ;
100102 match source {
101103 Self :: PROCESS_ACTIVATE => self . process_activate_event ( ops) ,
102104 Self :: PROCESS_VIRTQ_RX => self . process_rx_queue_event ( ) ,
@@ -109,6 +111,7 @@ impl MutEventSubscriber for Net {
109111 self . metrics . event_fails . inc ( ) ;
110112 }
111113 }
114+ info ! ( "Stopped processing Net device event" ) ;
112115 } else {
113116 warn ! (
114117 "Net: The device is not yet activated. Spurious event received: {:?}" ,
You can’t perform that action at this time.
0 commit comments