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

fix cmb-p2p #25

Merged
merged 2 commits into from
Sep 27, 2024
Merged

fix cmb-p2p #25

merged 2 commits into from
Sep 27, 2024

Conversation

birkelund
Copy link
Collaborator

No description provided.

iommufd does not support mapping hardware BARs. This is a problem in
scenarios where we want to P2P between devices.

Add an environment variable (VFN_IOMMU_FORCE_VFIO) that forces use of
the vfio backend, even when iommufd is supported.

Signed-off-by: Klaus Jensen <[email protected]>
The cmb-p2p example is broken. Fix it. After mapping the BAR into
virtual memory, map it in the iommu as well and use the resulting IOVA
as the CMB Controller Base Address.

Fixes: 4de6927 ("add cmb-p2p example")
Signed-off-by: Klaus Jensen <[email protected]>
@birkelund birkelund added the approved Approved for device testing label Sep 27, 2024
@birkelund birkelund merged commit a0070fa into main Sep 27, 2024
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Approved for device testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant