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
+1
View File
@@ -11,6 +11,7 @@ cargo-fuzz = true
[features] [features]
default = ["mshv_emulator"] default = ["mshv_emulator"]
igvm = [] igvm = []
ivshmem = []
mshv_emulator = ["hypervisor/mshv_emulator"] mshv_emulator = ["hypervisor/mshv_emulator"]
pvmemcontrol = [] pvmemcontrol = []
+2
View File
@@ -197,6 +197,8 @@ impl RequestHandler for StubApiRequestHandler {
preserved_fds: None, preserved_fds: None,
landlock_enable: false, landlock_enable: false,
landlock_rules: None, landlock_rules: None,
#[cfg(feature = "ivshmem")]
ivshmem: None,
}), }),
state: VmState::Running, state: VmState::Running,
memory_actual_size: 0, memory_actual_size: 0,