Don't report this error every time, as it is specific to the kernel vfio
implementation; we shouldn't warn about things that always happen, such
as when this is backed by vfio-user.
Signed-off-by: John Levon <john.levon@nutanix.com>
---
hw/vfio/region.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/hw/vfio/region.c b/hw/vfio/region.c
index 47fdc2df34..1d442f3f48 100644
--- a/hw/vfio/region.c
+++ b/hw/vfio/region.c
@@ -316,8 +316,6 @@ static bool vfio_region_create_dma_buf(VFIORegion *region, Error **errp)
ret = vfio_device_get_feature(vbasedev, feature);
if (ret < 0) {
if (ret == -ENOTTY) {
- warn_report_once("VFIO dma-buf not supported in kernel: "
- "PCI BAR IOMMU mappings may fail");
return true;
}
/* P2P DMA or exposing device memory use cases are not supported. */
--
2.43.0