From 1d670bb46cab7e71ed476553b815b30786e525df Mon Sep 17 00:00:00 2001 From: "alex.lyn" Date: Fri, 11 Apr 2025 17:00:10 +0800 Subject: [PATCH] runtime-rs: handle useless Device match arms in dragonball vmm case Fixes #10361 Signed-off-by: alex.lyn --- src/runtime-rs/crates/hypervisor/src/dragonball/inner_device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime-rs/crates/hypervisor/src/dragonball/inner_device.rs b/src/runtime-rs/crates/hypervisor/src/dragonball/inner_device.rs index d5edc53d5c..670b7d387b 100644 --- a/src/runtime-rs/crates/hypervisor/src/dragonball/inner_device.rs +++ b/src/runtime-rs/crates/hypervisor/src/dragonball/inner_device.rs @@ -98,7 +98,7 @@ impl DragonballInner { .context("add vhost-user-net device")?; Ok(DeviceType::VhostUserNetwork(dev)) } - DeviceType::Vsock(_) | DeviceType::Protection(_) => todo!(), + DeviceType::Vsock(_) | DeviceType::Protection(_) | DeviceType::PortDevice(_) => todo!(), } }