Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vfio-user/spec: report in VFIO_USER_DEVICE_GET_REGION_INFO that region contains I/O region FDs (?) #699

Open
tmakatos opened this issue Jun 23, 2022 · 2 comments

Comments

@tmakatos
Copy link
Member

Currently the vfio-user client doesn't know whether a particular region contains I/O region FDs. The only way for it to tell is to send a VFIO_USER_DEVICE_GET_REGION_IO_FDS to the vfio-user server. This could be avoided if the vfio-user server could set a flag in the response or something. However setting a flag, e.g. VFIO_REGION_INFO_FLAG_CONTAINS_REGION_IO_FDS could conflict with new VFIO_REGION_INFO_FLAG_ flags added upstream (otherwise we'd have to have our own versions of VFIO_USER_REGION_INFO_FLAG_. Another way would be to introduce a new region capability type, we'd still have the same problem with it being re-defined upstream (unless we can introduce an upstream VFIO_REGION_TYPE_USER and then freely define VFIO_REGION_SUBTYPE_USER_XXX?).

At this stage I think it's find having the vfio-user client having to explicitly send a message just to tell whether or not the region contains I/O region FDs.

@jlevon @john-johnson-git thoughts?

@jlevon
Copy link
Collaborator

jlevon commented Jun 24, 2022

this is control path, so I don't think it's so bad to just have the client ask, I think.

@john-johnson-git
Copy link

john-johnson-git commented Jun 27, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants