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

Merge changes from xapi-project's fork #24

Closed
wants to merge 13 commits into from

Conversation

psafont
Copy link

@psafont psafont commented Nov 1, 2022

The fork has been continually used and tested by xenserver, the changes were not initially upstreamed because the library was causing crashes and needed some rapid development loop at the time.

CI status before merging can be seen at https://github.com/psafont/ocaml-pci/actions/runs/3370580595

This might or might not fix ocaml5 compatibility, but it's something that we will tackle if needed

psafont and others added 13 commits November 1, 2022 15:19
Lost coverage and doc upload

Signed-off-by: Pau Ruiz Safont <[email protected]>
On newer distributions this string contains a dot

Signed-off-by: Pau Ruiz Safont <[email protected]>
The original fix for this bug has been tested for years, while the one
used for upstream doesn't seem to have had that much usage.
xapi-project/xen-api@bc053bb

Since the original fix needs ocaml 4.05, I used the opportunity to raise
the minimum version to 4.08.

Signed-off-by: Pau Ruiz Safont <[email protected]>
This does not fix the issue but can mitigate it

Signed-off-by: Marcello Seri <[email protected]>

This is now needed in case the pointers are NULL.

Cherry-picked from xapi-project/xen-api@3f71785

Signed-off-by: Pau Ruiz Safont <[email protected]>
Signed-off-by: Christian Lindig <[email protected]>
Signed-off-by: Christian Lindig <[email protected]>
Signed-off-by: Pau Ruiz Safont <[email protected]>
This is done through flags when no other option seems more sensible
(on generated ffi bindings and for repeating actions in tests).

The pci_bus_scan could be actually exposed in the Pci library if needed
in the future, I don't believe it's worth the effort to expose it if
nobody needs it for now.

Signed-off-by: Pau Ruiz Safont <[email protected]>
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

Successfully merging this pull request may close these issues.

dune
2 participants