runtime: fix device typo

Fix device typo in dragonball / runtime-rs / runtime.

Signed-off-by: Adeet Phanse <adeet.phanse@mongodb.com>
This commit is contained in:
Adeet Phanse
2025-10-07 10:41:42 -04:00
committed by Aurélien Bombo
parent d954932876
commit 4e4f9c44ae
5 changed files with 5 additions and 5 deletions

View File

@@ -18,7 +18,7 @@
//!
//! # Examples
//!
//! Creating a dummy deivce which implement DeviceIo trait, and register it to [IoManager] with
//! Creating a dummy device which implement DeviceIo trait, and register it to [IoManager] with
//! trapped MMIO/PIO address ranges:
//!
//! ```

View File

@@ -594,7 +594,7 @@ pub async fn do_handle_device(
.await
.try_add_device(&device_id)
.await
.context("failed to add deivce")?;
.context("failed to add device")?;
let device_info = d
.read()

View File

@@ -492,7 +492,7 @@ impl Device for VfioDevice {
return Ok(());
}
// do add device for vfio deivce
// do add device for vfio device
match h.add_device(DeviceType::Vfio(self.clone())).await {
Ok(dev) => {
// Update device info with the one received from device attach

View File

@@ -260,7 +260,7 @@ impl DragonballInner {
.context("insert network device")
}
/// Add vhost-user-net deivce to Dragonball
/// Add vhost-user-net device to Dragonball
fn add_vhost_user_net_device(&mut self, config: &VhostUserConfig) -> Result<()> {
let guest_mac = MacAddr::parse_str(&config.mac_address).ok();
let net_cfg = NetworkInterfaceConfig {

View File

@@ -1277,7 +1277,7 @@ func (k *kataAgent) setupNetworks(ctx context.Context, sandbox *Sandbox, c *Cont
var err error
var endpoints []Endpoint
if c == nil || c.id == sandbox.id {
// TODO: VFIO network deivce has not been hotplugged when creating the Sandbox,
// TODO: VFIO network device has not been hotplugged when creating the Sandbox,
// so need to skip VFIO endpoint here.
// After KEP #4113(https://github.com/kubernetes/enhancements/pull/4113)
// is implemented, the VFIO network devices will be attached before container