-
Notifications
You must be signed in to change notification settings - Fork 53
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
support for shadow ioeventfd #698
Conversation
Signed-off-by: Thanos Makatos <[email protected]> Change-Id: Iad849c94076ffa5988e034c8bf7ec312d01f095f
3f9562b
to
af4d138
Compare
should be make this a config option, as it's not something officially supported by anything else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should add some py tests too?
My primary goal was to get some initial feeback, I think until we hear back from ElenaU about ioregionfd we should leave this unmerged. |
sure |
When an ioeventfd is written to, KVM discards the value since it has no memory to write it to, and simply kicks the eventfd. This a problem for devices such a NVMe controllers that need the value (e.g. doorbells on BAR0). This patch allows the vfio-user server to pass a file descriptor that can be mmap'ed and KVM can write the ioeventfd value to this _shadow_ memory instead of discarding it. This shadow memory is not exposed to the guest. Signed-off-by: Thanos Makatos <[email protected]> Change-Id: Iad849c94076ffa5988e034c8bf7ec312d01f095f
|
done |
yep I forgot |
Signed-off-by: Thanos Makatos <[email protected]> Change-Id: Idedbdde5e6315e5ce568cc14d4d6710d8a9af094
I'm not sure how to add new tests because we rely on a |
It should be a meson option, that then sets a define. then you can look at the meson option to decide whether to run those test cases. |
Signed-off-by: Thanos Makatos <[email protected]>
Signed-off-by: Thanos Makatos <[email protected]>
will review when tests are passing |
Signed-off-by: Thanos Makatos <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just nits. Mind adding a short explanation to docs/ too ?
Signed-off-by: Thanos Makatos <[email protected]>
sure |
Signed-off-by: Thanos Makatos <[email protected]>
Signed-off-by: Thanos Makatos <[email protected]>
Signed-off-by: Thanos Makatos <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Signed-off-by: Thanos Makatos [email protected]