summary refs log tree commit diff
path: root/fuzz
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/block_fuzzer.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/fuzz/block_fuzzer.rs b/fuzz/block_fuzzer.rs
index b1bc003..1730d49 100644
--- a/fuzz/block_fuzzer.rs
+++ b/fuzz/block_fuzzer.rs
@@ -12,7 +12,7 @@ use std::sync::atomic::AtomicUsize;
 use std::sync::Arc;
 
 use cros_fuzz::fuzz_target;
-use devices::virtio::{Block, Queue, VirtioDevice};
+use devices::virtio::{Block, Interrupt, Queue, VirtioDevice};
 use sys_util::{EventFd, GuestAddress, GuestMemory, SharedMemory};
 
 const MEM_SIZE: u64 = 256 * 1024 * 1024;
@@ -84,10 +84,12 @@ fuzz_target!(|bytes| {
 
     block.activate(
         mem,
-        EventFd::new().unwrap(),
-        EventFd::new().unwrap(),
-        None, // msix_config
-        Arc::new(AtomicUsize::new(0)),
+        Interrupt::new(
+            Arc::new(AtomicUsize::new(0)),
+            EventFd::new().unwrap(),
+            EventFd::new().unwrap(),
+            None, // msix_config
+        ),
         vec![q],
         queue_evts,
     );