vfio-cdx: add bus mastering device feature support
authorNipun Gupta <nipun.gupta@amd.com>
Fri, 15 Sep 2023 04:54:23 +0000 (10:24 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 28 Sep 2023 18:12:07 +0000 (12:12 -0600)
commit8a97ab9b8b31790d0014d3183f33a167454171c0
tree863976901eacf5020e73f5ab356a16ffc270dacf
parentf59a7b6af012619199c55f587a6c4ed681639b32
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>
drivers/vfio/cdx/main.c
drivers/vfio/cdx/private.h