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 build with X2APIC false #89

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Conversation

w-woloszyn
Copy link
Contributor

Recent changes broke sgx-step with the kernel parameter nox2apic. This is a fix.

Wojciech Aleksander Woloszyn and others added 2 commits September 30, 2024 13:52
@w-woloszyn
Copy link
Contributor Author

Ideally, we want to automatically set X2APIC as per kernel parameters. Currently, sgx-step has X2APIC set to true by default. Because nox2apic used to be required, this introduced a regression causing an unrecoverable system freeze.

@jovanbulck
Copy link
Owner

Thanks Wojciech for catching this! I clearly need better (automated) testing infrastructure -- currently only ran on an X2APIC machine..

I agree this would ideally be set/deduced automatically.. could even be done at runtime by parsing dmesg and/or /proc/cmdline; or in the build system as in #67

also check_sys.sh could/should warn when detecting nox2apic in dmesg and X2APIC=1 in config.h..

@jovanbulck jovanbulck merged commit 811395c into jovanbulck:master Sep 30, 2024
1 check passed
@jovanbulck
Copy link
Owner

This is now also implemented in check_sys.sh normally: 67bd08d

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