fuzz: add ivshmem device config

Signed-off-by: Songqian Li <sionli@tencent.com>
This commit is contained in:
Songqian Li 2024-08-29 16:26:48 +08:00 committed by Bo Chen
parent f0febcae3d
commit a09c8329fb
2 changed files with 3 additions and 0 deletions

View file

@ -11,6 +11,7 @@ cargo-fuzz = true
[features]
default = ["mshv_emulator"]
igvm = []
ivshmem = []
mshv_emulator = ["hypervisor/mshv_emulator"]
pvmemcontrol = []

View file

@ -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,