Re: [RFC v2 1/2] vfio: add callback to get tph info for dmabuf

Keith Busch
2026-03-31T19:44:05Z

On Tue, Mar 31, 2026 at 10:02:20PM +0300, Leon Romanovsky wrote:
>
> Right, what about adding TPH fields to struct vfio_region_dma_range
> instead of struct vfio_device_feature_dma_buf?

You might have to show me with code what you're talking about because I
can't see any way we can add fields to any struct here without breaking
backward compatibility.

If we can't claim bits out of the unused "flags" field for this feature,
then my initial reply is the only sane approach: we can introduce a new
feature and struct for it that closely mirrors the existing one, but
with the extra hint fields.