cloud-hypervisor/virtio-devices/src
Bo Chen 83ab5ea528 virtio-devices: net: Provide custom functions for fuzzing
Three functions are added:
* 'Tap::new_for_fuzzing()' a custom constructor that creates a dummy
`Tap` interface directly from `File` backed by Unix domain socket;
* 'Tap::mtu()' a custom function that returns hard-coded mtu;
* 'Net::wait_for_epoll_threads()'.

Two functions are reused with modifications to work with the dummy 'Tap'
interface:
* 'Net::new_with_tap()' is made public for fuzzing;
* 'Net::activate()' is modified to not call into 'Tap::set_offload()'
for fuzzing.

Signed-off-by: Bo Chen <chen.bo@intel.com>
2022-11-30 12:13:14 +00:00
..
transport virtio-devices: Create a proper result type for VirtioPciDevice 2022-11-23 18:37:40 +00:00
vhost_user virtio-devices: modify or provide safety comments 2022-11-18 12:50:01 +00:00
vsock virtio-devices: modify or provide safety comments 2022-11-18 12:50:01 +00:00
balloon.rs virtio-devices: modify or provide safety comments 2022-11-18 12:50:01 +00:00
block.rs virtio-devices: block: Return error to driver on writes if read-only 2022-11-14 15:28:30 +00:00
console.rs virtio-devices: modify or provide safety comments 2022-11-18 12:50:01 +00:00
device.rs virtio-net: net: Wait for threads to exit on Drop 2022-11-10 07:46:16 -08:00
epoll_helper.rs virtio-devices: modify or provide safety comments 2022-11-18 12:50:01 +00:00
iommu.rs virtio-devices: modify or provide safety comments 2022-11-18 12:50:01 +00:00
lib.rs misc: Unify error message punctuation 2022-10-21 12:19:07 +02:00
mem.rs virtio-devices: modify or provide safety comments 2022-11-18 12:50:01 +00:00
net.rs virtio-devices: net: Provide custom functions for fuzzing 2022-11-30 12:13:14 +00:00
pmem.rs vmm: virtio-devices: Restore every VirtioDevice upon creation 2022-10-24 14:17:08 +02:00
rng.rs vmm: virtio-devices: Restore every VirtioDevice upon creation 2022-10-24 14:17:08 +02:00
seccomp_filters.rs virtio-devices: seccomp: Move mprotect() to virtio common rules 2022-11-12 08:29:47 +00:00
thread_helper.rs virtio-devices: Shutdown VMM upon worker thread errors 2022-08-16 11:45:44 +01:00
vdpa.rs vmm: virtio-devices: Restore every VirtioDevice upon creation 2022-10-24 14:17:08 +02:00
watchdog.rs virtio-devices: modify or provide safety comments 2022-11-18 12:50:01 +00:00