mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
fuzz: Fix use of "guest_debug" conditional code
Enable the use of the vmm crate with the "guest_debug" feature and make the code that exercises that in the fuzzer unconditional on "guest_debug" as a feature (as that is not specified as a feature in the fuzz workspace itself.) Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ once_cell = "1.19.0"
|
|||||||
seccompiler = "0.4.0"
|
seccompiler = "0.4.0"
|
||||||
virtio-devices = { path = "../virtio-devices" }
|
virtio-devices = { path = "../virtio-devices" }
|
||||||
virtio-queue = "0.12.0"
|
virtio-queue = "0.12.0"
|
||||||
vmm = { path = "../vmm" }
|
vmm = { path = "../vmm", features = ["guest_debug"]}
|
||||||
vmm-sys-util = "0.12.1"
|
vmm-sys-util = "0.12.1"
|
||||||
vm-memory = "0.14.1"
|
vm-memory = "0.14.1"
|
||||||
vm-migration = { path = "../vm-migration" }
|
vm-migration = { path = "../vm-migration" }
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ impl RequestHandler for StubApiRequestHandler {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(target_arch = "x86_64", feature = "guest_debug"))]
|
#[cfg(target_arch = "x86_64")]
|
||||||
fn vm_coredump(&mut self, _: &str) -> Result<(), VmError> {
|
fn vm_coredump(&mut self, _: &str) -> Result<(), VmError> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@@ -185,7 +185,6 @@ impl RequestHandler for StubApiRequestHandler {
|
|||||||
sgx_epc: None,
|
sgx_epc: None,
|
||||||
numa: None,
|
numa: None,
|
||||||
watchdog: false,
|
watchdog: false,
|
||||||
#[cfg(feature = "guest_debug")]
|
|
||||||
gdb: false,
|
gdb: false,
|
||||||
pci_segments: None,
|
pci_segments: None,
|
||||||
platform: None,
|
platform: None,
|
||||||
|
|||||||
Reference in New Issue
Block a user