mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Rename control parameter for VIRTIO_F_ACCESS_PLATFORM
Rename from iommu to access_platform_enabled. The original name was iommu as this feature was exposed for devices behind an IOMMU however this feature is also now used for confidential VMs so adopt a more general name. Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -339,7 +339,7 @@ where
|
||||
cid: u32,
|
||||
path: PathBuf,
|
||||
mut backend: B,
|
||||
iommu: bool,
|
||||
access_platform_enabled: bool,
|
||||
seccomp_action: SeccompAction,
|
||||
exit_evt: EventFd,
|
||||
state: Option<VsockState>,
|
||||
@@ -353,7 +353,7 @@ where
|
||||
} else {
|
||||
let mut avail_features = (1u64 << VIRTIO_F_VERSION_1) | (1u64 << VIRTIO_F_IN_ORDER);
|
||||
|
||||
if iommu {
|
||||
if access_platform_enabled {
|
||||
avail_features |= 1u64 << VIRTIO_F_ACCESS_PLATFORM;
|
||||
}
|
||||
(avail_features, 0, false)
|
||||
|
||||
Reference in New Issue
Block a user