mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 03:15:20 +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:
parent
2bf6f9300a
commit
3def18f502
@ -24,7 +24,7 @@ once_cell = "1.19.0"
|
||||
seccompiler = "0.4.0"
|
||||
virtio-devices = { path = "../virtio-devices" }
|
||||
virtio-queue = "0.12.0"
|
||||
vmm = { path = "../vmm" }
|
||||
vmm = { path = "../vmm", features = ["guest_debug"]}
|
||||
vmm-sys-util = "0.12.1"
|
||||
vm-memory = "0.14.1"
|
||||
vm-migration = { path = "../vm-migration" }
|
||||
|
@ -105,7 +105,7 @@ impl RequestHandler for StubApiRequestHandler {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(all(target_arch = "x86_64", feature = "guest_debug"))]
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
fn vm_coredump(&mut self, _: &str) -> Result<(), VmError> {
|
||||
Ok(())
|
||||
}
|
||||
@ -185,7 +185,6 @@ impl RequestHandler for StubApiRequestHandler {
|
||||
sgx_epc: None,
|
||||
numa: None,
|
||||
watchdog: false,
|
||||
#[cfg(feature = "guest_debug")]
|
||||
gdb: false,
|
||||
pci_segments: None,
|
||||
platform: None,
|
||||
|
Loading…
Reference in New Issue
Block a user