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

libmstpm: compile openssl with -O3 for release build #322

Open
cclaudio opened this issue Apr 12, 2024 · 1 comment
Open

libmstpm: compile openssl with -O3 for release build #322

cclaudio opened this issue Apr 12, 2024 · 1 comment
Assignees

Comments

@cclaudio
Copy link
Member

As mentioned in the merged PR #317, the openssl fails to compile when we pass any optimization to gcc (e.g. -O3). However, ideally make RELEASE=1 should build it passing -O3. We could use other platforms as reference, the upstream openssl config files show some platforms passing -O3 to the compiler.

In the last SVSM meeting, we discussed that one option could be:

  • keep the no-sse2 parameter in the openssl Configure cmd-line
  • rather than passing the CFLAG -mno-sse, implement handlers in the SVSM to mitigate the unhandled exception 6
@joergroedel
Copy link
Member

The right fix for this is to enable FPU usage in the SVSM code base. This will be needed anyway as user-mode support progresses. @vsntk18 volunteered to look into this.

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