Skip to content

Commit 063ebb1

Browse files
Jean-Philippe Bruckerjoergroedel
authored andcommitted
iommu/virtio: Add definitions for VIRTIO_IOMMU_F_BYPASS_CONFIG
Add definitions for the VIRTIO_IOMMU_F_BYPASS_CONFIG, which supersedes VIRTIO_IOMMU_F_BYPASS. Reviewed-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Reviewed-by: Eric Auger <eric.auger@redhat.com> Link: https://lore.kernel.org/r/20211201173323.1045819-2-jean-philippe@linaro.org Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 0fcfb00 commit 063ebb1

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

include/uapi/linux/virtio_iommu.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define VIRTIO_IOMMU_F_BYPASS 3
1717
#define VIRTIO_IOMMU_F_PROBE 4
1818
#define VIRTIO_IOMMU_F_MMIO 5
19+
#define VIRTIO_IOMMU_F_BYPASS_CONFIG 6
1920

2021
struct virtio_iommu_range_64 {
2122
__le64 start;
@@ -36,6 +37,8 @@ struct virtio_iommu_config {
3637
struct virtio_iommu_range_32 domain_range;
3738
/* Probe buffer size */
3839
__le32 probe_size;
40+
__u8 bypass;
41+
__u8 reserved[3];
3942
};
4043

4144
/* Request types */
@@ -66,11 +69,14 @@ struct virtio_iommu_req_tail {
6669
__u8 reserved[3];
6770
};
6871

72+
#define VIRTIO_IOMMU_ATTACH_F_BYPASS (1 << 0)
73+
6974
struct virtio_iommu_req_attach {
7075
struct virtio_iommu_req_head head;
7176
__le32 domain;
7277
__le32 endpoint;
73-
__u8 reserved[8];
78+
__le32 flags;
79+
__u8 reserved[4];
7480
struct virtio_iommu_req_tail tail;
7581
};
7682

0 commit comments

Comments
 (0)