runtime-rs: handle useless Device match arms in dragonball vmm case

Fixes #10361

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
This commit is contained in:
alex.lyn
2025-04-11 17:00:10 +08:00
parent f08fdd25d8
commit 1d670bb46c

View File

@@ -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!(),
}
}