mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vm-virtio: Add IOMMU support to virtio-rng
Adding virtio feature VIRTIO_F_IOMMU_PLATFORM when explicitly asked by the user. The need for this feature is to be able to attach the virtio device to a virtual IOMMU. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
ee1899c6f6
commit
9ab00dcb75
@@ -634,8 +634,8 @@ impl DeviceManager {
|
||||
|
||||
// Add virtio-rng if required
|
||||
if let Some(rng_path) = vm_info.vm_cfg.rng.src.to_str() {
|
||||
let virtio_rng_device =
|
||||
vm_virtio::Rng::new(rng_path).map_err(DeviceManagerError::CreateVirtioRng)?;
|
||||
let virtio_rng_device = vm_virtio::Rng::new(rng_path, false)
|
||||
.map_err(DeviceManagerError::CreateVirtioRng)?;
|
||||
devices.push(Box::new(virtio_rng_device) as Box<dyn vm_virtio::VirtioDevice>);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user