summaryrefslogtreecommitdiff
path: root/drivers/vfio/cdx/private.h
diff options
context:
space:
mode:
authorNipun Gupta <nipun.gupta@amd.com>2023-09-15 10:24:23 +0530
committerAlex Williamson <alex.williamson@redhat.com>2023-09-28 12:12:07 -0600
commit8a97ab9b8b31790d0014d3183f33a167454171c0 (patch)
tree863976901eacf5020e73f5ab356a16ffc270dacf /drivers/vfio/cdx/private.h
parentf59a7b6af012619199c55f587a6c4ed681639b32 (diff)
downloadlinux-8a97ab9b8b31790d0014d3183f33a167454171c0.tar.gz
linux-8a97ab9b8b31790d0014d3183f33a167454171c0.tar.bz2
linux-8a97ab9b8b31790d0014d3183f33a167454171c0.zip
vfio-cdx: add bus mastering device feature support
Support Bus master enable and disable on VFIO-CDX devices using VFIO_DEVICE_FEATURE_BUS_MASTER flag over VFIO_DEVICE_FEATURE IOCTL. Co-developed-by: Shubham Rohila <shubham.rohila@amd.com> Signed-off-by: Shubham Rohila <shubham.rohila@amd.com> Signed-off-by: Nipun Gupta <nipun.gupta@amd.com> Link: https://lore.kernel.org/r/20230915045423.31630-3-nipun.gupta@amd.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/cdx/private.h')
-rw-r--r--drivers/vfio/cdx/private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/vfio/cdx/private.h b/drivers/vfio/cdx/private.h
index 8bdc117ea88e..8e9d25913728 100644
--- a/drivers/vfio/cdx/private.h
+++ b/drivers/vfio/cdx/private.h
@@ -23,6 +23,8 @@ struct vfio_cdx_region {
struct vfio_cdx_device {
struct vfio_device vdev;
struct vfio_cdx_region *regions;
+ u32 flags;
+#define BME_SUPPORT BIT(0)
};
#endif /* VFIO_CDX_PRIVATE_H */