mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
313d980538
commit
da0d0a2090
@@ -50,7 +50,7 @@ use crate::seccomp_filters::Thread;
|
||||
use crate::thread_helper::spawn_virtio_thread;
|
||||
use crate::{
|
||||
ActivateResult, EPOLL_HELPER_EVENT_LAST, EpollHelper, EpollHelperError, EpollHelperHandler,
|
||||
Error as DeviceError, GuestMemoryMmap, VIRTIO_F_IN_ORDER, VIRTIO_F_IOMMU_PLATFORM,
|
||||
Error as DeviceError, GuestMemoryMmap, VIRTIO_F_ACCESS_PLATFORM, VIRTIO_F_IN_ORDER,
|
||||
VIRTIO_F_VERSION_1, VirtioCommon, VirtioDevice, VirtioDeviceType, VirtioInterrupt,
|
||||
VirtioInterruptType,
|
||||
};
|
||||
@@ -349,7 +349,7 @@ where
|
||||
let mut avail_features = (1u64 << VIRTIO_F_VERSION_1) | (1u64 << VIRTIO_F_IN_ORDER);
|
||||
|
||||
if iommu {
|
||||
avail_features |= 1u64 << VIRTIO_F_IOMMU_PLATFORM;
|
||||
avail_features |= 1u64 << VIRTIO_F_ACCESS_PLATFORM;
|
||||
}
|
||||
(avail_features, 0, false)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user