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:
Rob Bradford
2026-04-17 09:52:06 +01:00
parent adc5bb7958
commit 0eca4d7c68
10 changed files with 32 additions and 32 deletions
+2 -2
View File
@@ -287,7 +287,7 @@ impl Pmem {
disk: File,
addr: GuestAddress,
mapping: UserspaceMapping,
iommu: bool,
access_platform_enabled: bool,
seccomp_action: SeccompAction,
exit_evt: EventFd,
state: Option<PmemState>,
@@ -308,7 +308,7 @@ impl Pmem {
let mut avail_features = 1u64 << VIRTIO_F_VERSION_1;
if iommu {
if access_platform_enabled {
avail_features |= 1u64 << VIRTIO_F_ACCESS_PLATFORM;
}
(avail_features, 0, config, false)