Commit d83c67c4 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

virtio-iommu: convert to LE accessors

Virtio iommu is modern-only. Use LE accessors for config space.
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 99e0d048
...@@ -1010,7 +1010,7 @@ static int viommu_probe(struct virtio_device *vdev) ...@@ -1010,7 +1010,7 @@ static int viommu_probe(struct virtio_device *vdev)
if (ret) if (ret)
return ret; return ret;
virtio_cread(vdev, struct virtio_iommu_config, page_size_mask, virtio_cread_le(vdev, struct virtio_iommu_config, page_size_mask,
&viommu->pgsize_bitmap); &viommu->pgsize_bitmap);
if (!viommu->pgsize_bitmap) { if (!viommu->pgsize_bitmap) {
...@@ -1022,23 +1022,23 @@ static int viommu_probe(struct virtio_device *vdev) ...@@ -1022,23 +1022,23 @@ static int viommu_probe(struct virtio_device *vdev)
viommu->last_domain = ~0U; viommu->last_domain = ~0U;
/* Optional features */ /* Optional features */
virtio_cread_feature(vdev, VIRTIO_IOMMU_F_INPUT_RANGE, virtio_cread_le_feature(vdev, VIRTIO_IOMMU_F_INPUT_RANGE,
struct virtio_iommu_config, input_range.start, struct virtio_iommu_config, input_range.start,
&input_start); &input_start);
virtio_cread_feature(vdev, VIRTIO_IOMMU_F_INPUT_RANGE, virtio_cread_le_feature(vdev, VIRTIO_IOMMU_F_INPUT_RANGE,
struct virtio_iommu_config, input_range.end, struct virtio_iommu_config, input_range.end,
&input_end); &input_end);
virtio_cread_feature(vdev, VIRTIO_IOMMU_F_DOMAIN_RANGE, virtio_cread_le_feature(vdev, VIRTIO_IOMMU_F_DOMAIN_RANGE,
struct virtio_iommu_config, domain_range.start, struct virtio_iommu_config, domain_range.start,
&viommu->first_domain); &viommu->first_domain);
virtio_cread_feature(vdev, VIRTIO_IOMMU_F_DOMAIN_RANGE, virtio_cread_le_feature(vdev, VIRTIO_IOMMU_F_DOMAIN_RANGE,
struct virtio_iommu_config, domain_range.end, struct virtio_iommu_config, domain_range.end,
&viommu->last_domain); &viommu->last_domain);
virtio_cread_feature(vdev, VIRTIO_IOMMU_F_PROBE, virtio_cread_le_feature(vdev, VIRTIO_IOMMU_F_PROBE,
struct virtio_iommu_config, probe_size, struct virtio_iommu_config, probe_size,
&viommu->probe_size); &viommu->probe_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment