From a09c8329fb18d0088da855391d3b67dde26c7d4f Mon Sep 17 00:00:00 2001 From: Songqian Li Date: Thu, 29 Aug 2024 16:26:48 +0800 Subject: [PATCH] fuzz: add ivshmem device config Signed-off-by: Songqian Li --- fuzz/Cargo.toml | 1 + fuzz/fuzz_targets/http_api.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 8a7e1d484..f8fa6fa4b 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -11,6 +11,7 @@ cargo-fuzz = true [features] default = ["mshv_emulator"] igvm = [] +ivshmem = [] mshv_emulator = ["hypervisor/mshv_emulator"] pvmemcontrol = [] diff --git a/fuzz/fuzz_targets/http_api.rs b/fuzz/fuzz_targets/http_api.rs index 5c146ad9d..ee8fa5237 100644 --- a/fuzz/fuzz_targets/http_api.rs +++ b/fuzz/fuzz_targets/http_api.rs @@ -197,6 +197,8 @@ impl RequestHandler for StubApiRequestHandler { preserved_fds: None, landlock_enable: false, landlock_rules: None, + #[cfg(feature = "ivshmem")] + ivshmem: None, }), state: VmState::Running, memory_actual_size: 0,