virtio-devices: Rename VIRTIO_F_IOMMU_PLATFORM

Rename the transport feature bit constant from
VIRTIO_F_IOMMU_PLATFORM to VIRTIO_F_ACCESS_PLATFORM across
the entire virtio-devices crate.

The virtio specification as of v1.1 carries bit 33 as
VIRTIO_F_ACCESS_PLATFORM. The Linux kernel UAPI header
<linux/virtio_config.h> carries VIRTIO_F_IOMMU_PLATFORM
only as a backward-compatible alias.

This is a pure rename with no functional or behavioral
change.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-07 12:01:25 +01:00
committed by Rob Bradford
parent 313d980538
commit da0d0a2090
12 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ use vmm_sys_util::eventfd::EventFd;
use crate::{
ActivateError, ActivateResult, DEVICE_ACKNOWLEDGE, DEVICE_DRIVER, DEVICE_DRIVER_OK,
DEVICE_FEATURES_OK, GuestMemoryMmap, VIRTIO_F_IOMMU_PLATFORM, VirtioCommon, VirtioDevice,
DEVICE_FEATURES_OK, GuestMemoryMmap, VIRTIO_F_ACCESS_PLATFORM, VirtioCommon, VirtioDevice,
VirtioInterrupt, VirtioInterruptType, get_host_address_range,
};
@@ -164,7 +164,7 @@ impl Vdpa {
let iova_range = vhost.get_iova_range().map_err(Error::GetIovaRange)?;
if avail_features & (1u64 << VIRTIO_F_IOMMU_PLATFORM) == 0 {
if avail_features & (1u64 << VIRTIO_F_ACCESS_PLATFORM) == 0 {
return Err(Error::MissingAccessPlatformVirtioFeature);
}