mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-23 05:04:07 +00:00
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:
committed by
Aurélien Bombo
parent
d954932876
commit
4e4f9c44ae
@@ -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:
|
||||
//!
|
||||
//! ```
|
||||
|
@@ -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()
|
||||
|
@@ -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
|
||||
|
@@ -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 {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user