Skip to content

Allow disabling the pthread support check #6

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

Merged

Conversation

stefano-garzarella
Copy link
Contributor

@stefano-garzarella stefano-garzarella commented Nov 11, 2024

In cases where this code is utilized only for the libraries in it (e.g. vTPM emulation in Coconut SVSM), we do not need to compile the simulator.

So it would be convenient to have the ability to disable pthread checking, which in that case is not necassary since it is used only by the simulator. Also in Coconut SVSM we don't have pthread support, so it's also a requirement and for now we have our own fork to disable this check.

By default pthread checking remains enabled, so there is no change. --disable-pthread is added to the configure to support this new use case.

In cases where this code is utlized only for the libriers in it
(e.g. vTPM emulation in Coconut SVSM), we do not need to compile
the simulator.

So it would be convenient to have the ability to disable pthread
checking, which in that case is not necassary since it is used only by
the simulator. Also in Coconut SVSM we don't have pthread support, so
it's also a requirement and for now we have our own fork to disable
this check.

By default pthread checking remains enabled, so there is no change.
`--disable-pthread` is added to the configure to support this new use
case.

Signed-off-by: Stefano Garzarella <[email protected]>
@stefano-garzarella
Copy link
Contributor Author

@chrisfenner @bradlitterell @amycnelson any feedback on this?
Is there a chance we can merge it or do I close it?

We have a workaround for now, although not very nice in COCONUT SVSM: https://github.com/coconut-svsm/svsm/blob/5efb4d21b6ce03b7d06dea59b69e814f8f0a13b3/libtcgtpm/Makefile#L170

@chrisfenner
Copy link
Member

@chrisfenner @bradlitterell @amycnelson any feedback on this? Is there a chance we can merge it or do I close it?

We have a workaround for now, although not very nice in COCONUT SVSM: https://github.com/coconut-svsm/svsm/blob/5efb4d21b6ce03b7d06dea59b69e814f8f0a13b3/libtcgtpm/Makefile#L170

Sorry this PR stayed dormant. It seems fine to me, so happy to approve and merge.

However, I want to share a PSA that hopefully will not be terrible news: The build system is likely to change to cmake in the next published version of this code.

@chrisfenner chrisfenner merged commit 7b759a4 into TrustedComputingGroup:main Jun 4, 2025
@stefano-garzarella
Copy link
Contributor Author

@chrisfenner @bradlitterell @amycnelson any feedback on this? Is there a chance we can merge it or do I close it?
We have a workaround for now, although not very nice in COCONUT SVSM: https://github.com/coconut-svsm/svsm/blob/5efb4d21b6ce03b7d06dea59b69e814f8f0a13b3/libtcgtpm/Makefile#L170

Sorry this PR stayed dormant. It seems fine to me, so happy to approve and merge.

Great, thanks!

However, I want to share a PSA that hopefully will not be terrible news: The build system is likely to change to cmake in the next published version of this code.

Thanks for sharing. I think it's not that bad as news :-) We will need to change something, but I think we will find a way to adapt.

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.

2 participants