Skip to content

Commit

Permalink
iommu/virtio: Add definitions for VIRTIO_IOMMU_F_BYPASS_CONFIG
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jpbrucker authored and joergroedel committed Dec 6, 2021
1 parent 0fcfb00 commit 063ebb1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/uapi/linux/virtio_iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define VIRTIO_IOMMU_F_BYPASS 3
#define VIRTIO_IOMMU_F_PROBE 4
#define VIRTIO_IOMMU_F_MMIO 5
#define VIRTIO_IOMMU_F_BYPASS_CONFIG 6

struct virtio_iommu_range_64 {
__le64 start;
Expand All @@ -36,6 +37,8 @@ struct virtio_iommu_config {
struct virtio_iommu_range_32 domain_range;
/* Probe buffer size */
__le32 probe_size;
__u8 bypass;
__u8 reserved[3];
};

/* Request types */
Expand Down Expand Up @@ -66,11 +69,14 @@ struct virtio_iommu_req_tail {
__u8 reserved[3];
};

#define VIRTIO_IOMMU_ATTACH_F_BYPASS (1 << 0)

struct virtio_iommu_req_attach {
struct virtio_iommu_req_head head;
__le32 domain;
__le32 endpoint;
__u8 reserved[8];
__le32 flags;
__u8 reserved[4];
struct virtio_iommu_req_tail tail;
};

Expand Down

0 comments on commit 063ebb1

Please sign in to comment.