Skip to content

Commit f3301b4

Browse files
committed
vm-device: return reference to EventFd from Interrupt trait
Instead of returning an `EventFd` type, which will actually force us to clone the file descriptor in the Firecracker side. Signed-off-by: Babis Chalios <[email protected]>
1 parent af82c61 commit f3301b4

File tree

1 file changed

+1
-1
lines changed
  • src/vm-device/src/interrupt

1 file changed

+1
-1
lines changed

src/vm-device/src/interrupt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ pub trait InterruptSourceGroup: Send + Sync {
172172
/// to inject interrupts into a guest, by writing to the file returned
173173
/// by this method.
174174
#[allow(unused_variables)]
175-
fn notifier(&self, index: InterruptIndex) -> Option<EventFd>;
175+
fn notifier(&self, index: InterruptIndex) -> Option<&EventFd>;
176176

177177
/// Update the interrupt source group configuration.
178178
///

0 commit comments

Comments
 (0)