mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
build: Bump rust-vmm dependencies
Bump to the released versions that are compatible wherever possible but for the vhost and vfio crates they are git hashes as no releases with compatible versions have yet been made. Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -91,7 +91,7 @@ use seccompiler::SeccompAction;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use thiserror::Error;
|
||||
use tracer::trace_scoped;
|
||||
use vfio_ioctls::{VfioContainer, VfioDevice, VfioDeviceFd};
|
||||
use vfio_ioctls::{VfioContainer, VfioDevice, VfioDeviceFd, VfioOps};
|
||||
use virtio_devices::transport::{VirtioPciDevice, VirtioPciDeviceActivator, VirtioTransport};
|
||||
use virtio_devices::vhost_user::VhostUserConfig;
|
||||
use virtio_devices::{
|
||||
@@ -3867,8 +3867,11 @@ impl DeviceManager {
|
||||
vfio_container
|
||||
};
|
||||
|
||||
let vfio_device = VfioDevice::new(&device_cfg.path, Arc::clone(&vfio_container))
|
||||
.map_err(DeviceManagerError::VfioCreate)?;
|
||||
let vfio_device = VfioDevice::new(
|
||||
&device_cfg.path,
|
||||
Arc::clone(&vfio_container) as Arc<dyn VfioOps>,
|
||||
)
|
||||
.map_err(DeviceManagerError::VfioCreate)?;
|
||||
|
||||
if needs_dma_mapping {
|
||||
// Register DMA mapping in IOMMU.
|
||||
@@ -3884,8 +3887,8 @@ impl DeviceManager {
|
||||
unsafe {
|
||||
vfio_container.vfio_dma_map(
|
||||
region.start_addr().raw_value(),
|
||||
region.len(),
|
||||
region.as_ptr() as u64,
|
||||
region.len() as usize,
|
||||
region.as_ptr(),
|
||||
)
|
||||
}
|
||||
.map_err(DeviceManagerError::VfioDmaMap)?;
|
||||
@@ -4519,8 +4522,8 @@ impl DeviceManager {
|
||||
unsafe {
|
||||
vfio_container.vfio_dma_map(
|
||||
new_region.start_addr().raw_value(),
|
||||
new_region.len(),
|
||||
new_region.as_ptr() as u64,
|
||||
new_region.len() as usize,
|
||||
new_region.as_ptr(),
|
||||
)
|
||||
}
|
||||
.map_err(DeviceManagerError::UpdateMemoryForVfioPciDevice)?;
|
||||
|
||||
Reference in New Issue
Block a user