fuzz: Don't overload meaning of reset()

This function is for really for the transport layer to trigger a device
reset. Instead name it appropriately for the fuzzing specific use case.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2022-09-22 09:13:15 +01:00
committed by Bo Chen
parent c98bd2fd4a
commit 194b59f44b
12 changed files with 37 additions and 10 deletions

View File

@@ -104,7 +104,7 @@ fuzz_target!(|bytes| {
.ok();
// Wait for the events to finish and balloon device worker thread to return
balloon.reset();
balloon.wait_for_epoll_threads();
});
pub struct NoopVirtioInterrupt {}

View File

@@ -88,7 +88,7 @@ fuzz_target!(|bytes| {
.ok();
// Wait for the events to finish and block device worker thread to return
block.reset();
block.wait_for_epoll_threads();
});
fn memfd_create(name: &ffi::CStr, flags: u32) -> Result<RawFd, io::Error> {

View File

@@ -67,7 +67,7 @@ fuzz_target!(|bytes| {
.ok();
// Wait for the events to finish and pmem device worker thread to return
pmem.reset();
pmem.wait_for_epoll_threads();
});
fn memfd_create_with_size(name: &ffi::CStr, flags: u32, size: usize) -> Result<RawFd, io::Error> {

View File

@@ -104,7 +104,7 @@ fuzz_target!(|bytes| {
.ok();
// Wait for the events to finish and rng device worker thread to return
rng.reset();
rng.wait_for_epoll_threads();
});
pub struct NoopVirtioInterrupt {}

View File

@@ -69,7 +69,7 @@ fuzz_target!(|bytes| {
.ok();
// Wait for the events to finish and watchdog device worker thread to return
watchdog.reset();
watchdog.wait_for_epoll_threads();
});
pub struct NoopVirtioInterrupt {}